quick question

    Date: 05/05/05 (Web Development)    Keywords: java

    Javascript Question:

    I am trying to dynamically add options to a select field in a form using code similar to this; its worked for me before, but now it gives an error stating that document.form.selectname has no properties and I cant see why it is doing that.


    document.form.selectname.options[counter] = Add Option("text")



    I've tried using the selectfield without any options, with options, with different types of quotes etc.
    I also have this working in a demo environment just with different names and it seems to work fine.

    Any ideas? Its probably something trivial but I've been staring at this for a while and Im wondering if someone else might pickup on it quickly....

    Source: http://www.livejournal.com/community/webdev/195999.html

« URL Question || Time to make friends... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home