Dynamically Create a Select Listbox
I am attempting to make a form for people to enter football (soccer) scores and scorers.
For this I need a drop down box for each goal scored so that the scorers can be selected, although this could be done using PHP it would be slow and with the amounts of results to be added it would probably be a bad move.
The names would also have to be something like goal1 goal2 goal3 etc.
I know we're not supposed to bump - but it moved to the second page without any replies
Theres a few ways it could work, it could add a new box with no contents(and a value of 0) every time something is selected in the original box, or it could have add/remove boxes, etc.
Theyre all prolly watching the footie.
This may help you start off, the method is scripted so it should give you an Idea how to populate a select tag with data...
I dont want to populate it with data, I want to actually create a new select box.
Apparently createElement or something could be used for this, I tried looking it up but got nowhere, anyone know anything about that?
somebody suggest me that how can i generate new list box with value when i click one value of previous list box value.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)