View Single Post
Old 02-13-2013, 08:08 PM   PM User | #7
Logic Ali
Regular Coder

 
Logic Ali's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 976
Thanks: 0
Thanked 203 Times in 198 Posts
Logic Ali will become famous soon enoughLogic Ali will become famous soon enough
Quote:
Originally Posted by sgadow View Post
Logic,
I have tried that with no luck.
OK but keep it anyway, it's correct.

Quote:
Originally Posted by sgadow View Post

Would I have to run each specific onchange event onload somehow?
It looks as though you will.

Statements to run in your onload handler:

Code:
var selects = document.getElementsByTagName( 'select' );

for( var i = 0, box; ( box = selects[ i ] ); i++ )
  if( box.name.indexOf( 'ereg|' ) == 0 ) // or however you want to identify the <selects> involved
    box.onchange();
NOTE There is no need for javascript: in your event handlers, and it should be removed.

Last edited by Logic Ali; 02-13-2013 at 08:17 PM..
Logic Ali is offline   Reply With Quote
Users who have thanked Logic Ali for this post:
sgadow (02-14-2013)