dbillings Posted November 4, 2009 Share Posted November 4, 2009 Say you have a form with 10 select lists. Is there a way to blur() all select boxes with one line of code? So replace... document.formname.selectName1.blur() document.formName.selectName2.blur() document.formName.selectName3.blur() etc... with... document.formName.something to refer to all select fields.blur() I'm not sure if that makes sense or if there is a short cut to blur all of one field type in a give form. Thanks for any help with this. Quote Link to comment Share on other sites More sharing options...
xtopolis Posted November 5, 2009 Share Posted November 5, 2009 How could they all have focus at once? If you want to remove focus from anywhere, set the focus to something specific and then blur that. AFAIK you can't focus on more than one object... http://www.java2s.com/Code/JavaScriptReference/Javascript-Methods/blurSyntaxParametersandNote.htm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.