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
> 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']");
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
3 matches
Mail list logo