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 PROTECTED]"+objForm[vIdx].id+"]").text() != '')
                    { filterUsed +=
$j("[EMAIL PROTECTED]"+objForm[vIdx].id+"]").text() + " :- ";  // Labeltext
                       filterUsed +=  objForm[vIdx].value + "<BR>"; // Label
Value
                    }
                }
            }
}


On 10/29/07, Gameslife <[EMAIL PROTECTED]> wrote:
>
>
> Hello.
>
> I trying to use jQuery to select label elements in my forms, utilizing
> this sintax:
>
> var label = $("label[for='ds_email']");
>
> But jQuery returns a empty object ... the label exists in the form
> what I tryng to select.
>
> Anyone have a solution for this problem? :S
>
> Thanks :)
>
>


-- 
Pramod Yadav,
Asst. Consultant
Credence Analytics

Reply via email to