[jQuery] Re: Using jQuery to select labels

2007-10-30 Thread Pramod yadav
Try this One. Hope that it will work objForm is th name of the form .Loop through the form elements for input tag. for ( specify the loop condition ) { if(objForm[vIdx].tagName=="INPUT") { if(objForm[vIdx].value != "") { if(objForm[vIdx].id != '' && $j("[EMAIL PROTEC

[jQuery] Re: Using jQuery to select labels

2007-10-29 Thread Dave Methvin
> var label = $("label[for='ds_email']"); > But jQuery returns a empty object Is this happening in IE only? Try this: var label = $("label[htmlFor='ds_email']");

[jQuery] Re: Using jQuery to select labels

2007-10-29 Thread Richard D. Worth
Your code looks good. And in fact it worked for me on a test page containing the following: Email: Some reminders/things to try next: 1. Are you using the latest version of jQuery? 2. Have you tried Firebug? 3. Is your code inside a $(document).ready(function() { ... }); or (shortcut) $(function