JQuery If Condition Was Not Working Properly
In my web page i used the Jquery program to display tooltip for the user for specified field. But i need to display the tip for some fields in some other position.For this i used t
Solution 1:
$('#frmail')
can't be falsy, even if there is no element with that id.
Replace
if ($('#frmail'))
with
if ($('#frmail').length)
Solution 2:
if ($('#frmail').length > 0)
Post a Comment for "JQuery If Condition Was Not Working Properly"