|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Need Help Plzzzzzzzz!!!!!!!!!!!!!!!!
hi
I have a drop down for the field country. i need the value from this field to populate the state drop down . I am currently using jsp and html i could use java script to solve this probs |
|
#2
|
||||
|
||||
|
try this...
Code:
var opt1=new Array("First Select Input","Second");
var opt2=new Array("First","Second");
function populate(thearraytochangeto) { //import an array of list idems
var obj=window.document.forms['formname'].selectname;
obj.options.length=0;
for (var x=0;x<thearraytochangeto.length;x++) {
obj.options[x]=new Option(thearraytochangeto[x],""); //use the second argument to add a value to the select option
}
}
hope this helps colton22 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Need Help Plzzzzzzzz!!!!!!!!!!!!!!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|