reset selectOneMenu javascript
Posted
by user234194
on Stack Overflow
See other posts from Stack Overflow
or by user234194
Published on 2010-05-03T22:31:58Z
Indexed on
2010/05/03
22:38 UTC
Read the original article
Hit count: 178
JavaScript
The following code resets one selectOneMenu through particular id. How to make it dynamic for more selectOneMenus to reset at the top value.
var test= document.getElementById('form1:text3');
test.options.selectedIndex=0;
This resets to top value of menu, but how to make it dynamic.
ANy help is appreciated.
© Stack Overflow or respective owner