View Single Post
Old 02-14-2013, 08:08 AM   PM User | #10
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,530
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Quote:
Originally Posted by sgadow View Post
Code:
var selects = document.getElementsByTagName( 'select' );

for( var i = 0, box; ( box = selects[ i ] ); i++ )
  if( box.name.indexOf( 'ereg|' ) == 0 )
    box.onchange();
That makes sense but I am unsure as to where exactly or how to modify my code to get it to work. I am rather new to this sorry
The bottom of the page should look like this:

Code:
<script type="text/javascript">
var selects = document.getElementsByTagName( 'select' );

for( var i = 0, box; ( box = selects[ i ] ); i++ )
  if( box.name.indexOf( 'ereg|' ) == 0 )
    box.onchange();
</script>
</body>
</html>
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Users who have thanked felgall for this post:
sgadow (02-14-2013)