making <option> selected 
Author Message
 making <option> selected


I have a <select> control in a form:

<select name="test">
<option value="1">1</option>
<option value = "2">2</option>
<input type="submit" name="submit" value="submit" onclick ="makeSelected

I want to write a JavaScript function "makeSelected(form)" to loop
through all option fields of the <select> object and MAKE one of the
<option> item to be "SELECTED" .

Is it possible?

Thanks for any idea.


Sent via http://www.*-*-*.com/
Before you buy.

Sat, 03 May 2003 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. <<<<<<<<ComboBox>>>>>>>>>>>>

2. --------<<<<<<MONEY>>>>>>--------- id 9543

3. HELP >>>>>>WIN API <<<<<<<<<<

4. *<< Making EXE File >>*

5. making <select> invisible

6. help me out please!!!!<<<<<<<<<<<<<<<<<<<<<<<thanks>>>>>>>>>>>>>>>>>>>>>>>>

7. Deleting items from <SELECT>'s options

8. Default current value in <Select> option

9. <option Selected> based on variable

10. Dynamic adding options to <select> element

11. removing selected attribute from <option> tag

12. <><><>HELP<><><> PCMCIA Motorola Montana 33.6


Powered by phpBB® Forum Software