Saturday, 7 September 2013

Jquery hide element by class

Jquery hide element by class

Jquery :
$("#pending").click(function(){
$(".pending").hide();
});
HTML /PHP :
echo "<td><div class='pending'><form method='post'
action='callstep.php'><input type='hidden' name='id'
value='$row[0]'><input type='submit' value='Reply' class='small alert
button'/></form></div></td>";
The above code does not work. The click function works but
$(".pending").hide(); not. (I replaced it with an alert to test.)
Anyone an idea ?!

No comments:

Post a Comment