Hi,
i am having a input field with a class = "required" .Now i want to check in JQuery whether the field which is having the class as "required" contains value or not.If not like alerting..
I tried it with.
$("#ResultSubmit").submit(function(){
if($("#"+<?=$r['Attribute']['id'];?>).fieldValue()=="")
{
alert("Fill in "+"<?=$r['Attribute']['label'];?>");
$("#"+<?=$r['Attribute']['id'];?>).focus();
return false;
}
});
How to check if that contains a class with "required".Please suggest me.....