查询:
$("#pending").click(function()
{
$(".pending").hide();
});
HTML/PHP:
<span style="font-size:2em;display:inline;position:relative;top:-30px;color:#484848;">Filter :<p id="pending" style="display:inline">Open</p><p id="wait" style="display:inline">Behandeling</p><p id="done" style="display:inline">Voltooid</p></span>
<?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>";
?>
上面的代码不起作用。该click
功能有效但$(".pending").hide();
无效。(我用一个alert
来测试它。)
任何人的想法?