I use tis code:
$(document).bind('click', function(e) {
if(!$(e.target).is('#paybox')) {
$('#paybox').hide();
}
});
to hide #paybox
when user click anywhere but #paybox
.
But when I click on "radio" form:
<div id="paybox">
<table width="100%">
<tr>
<form method="post" action="">
<td>
<input type="radio" name="dauer" value="small" checked>
</td>
<td>
<input type="radio" name="dauer" value="mid">
</td>
<td>
<input type="radio" name="dauer" value="big">
</td>
</form>
</tr>
</table>
</div>
INSIDE the #payboy
then #payboy
get hidden!
How can I prevent this?