Jump to content


select options

  • Please log in to reply
1 reply to this topic

#1 natalieG

  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 20 July 2006 - 03:13 PM

Is there a way to add options  select control that is already on the page?.  I have a page
with  the following:

<div ID="optiopns">..............................</div>

and I want to load options into  options div from  php via an AJAX  function in thre page. If I just enter
the text <option  value=?>abcd</option>  after the </select> is on the page,  thge options do not
show up in the select box. There may ne somethiong ewlse wrong, but it points to this and I was wondering if there was an "add option"  method I could use?.


#2 nogray

  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 20 July 2006 - 04:39 PM

I don't think you can have a div inside the select menu. If you using ajax, you can append the new options to the select using appendChild method.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users