Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. add elements to select

add elements to select

Scheduled Pinned Locked Moved ASP.NET
javahtmltoolstutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kvijayajyothy
    wrote on last edited by
    #1

    how to add elements dynamically to select components (HTML) using java script. var ni=document.getElementById('FieldSelect'); var newdiv=document.createElement('div'); newdiv.setAttribute('id','Catcode'); ni.appendChild(newdiv);

    vijaya

    I K 2 Replies Last reply
    0
    • K kvijayajyothy

      how to add elements dynamically to select components (HTML) using java script. var ni=document.getElementById('FieldSelect'); var newdiv=document.createElement('div'); newdiv.setAttribute('id','Catcode'); ni.appendChild(newdiv);

      vijaya

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      opts=document.getElementById('FieldSelect').options var optn=document.createElement("OPTION"); optn.text = "text"; optn.value = "value"; opts.options.add(optn); Best regard Pathan

      GOD HELP THOSE WHO HELP THEMSELVES

      1 Reply Last reply
      0
      • K kvijayajyothy

        how to add elements dynamically to select components (HTML) using java script. var ni=document.getElementById('FieldSelect'); var newdiv=document.createElement('div'); newdiv.setAttribute('id','Catcode'); ni.appendChild(newdiv);

        vijaya

        K Offline
        K Offline
        kvijayajyothy
        wrote on last edited by
        #3

        it will not insert data

        vijaya

        I 1 Reply Last reply
        0
        • K kvijayajyothy

          it will not insert data

          vijaya

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          I have done in my website. Plz post your code here

          GOD HELP THOSE WHO HELP THEMSELVES

          K 1 Reply Last reply
          0
          • I Imran Khan Pathan

            I have done in my website. Plz post your code here

            GOD HELP THOSE WHO HELP THEMSELVES

            K Offline
            K Offline
            kvijayajyothy
            wrote on last edited by
            #5

            thank you i got answer. the same way u said.

            vijaya

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups