Response title
This is preview!
I have some problem with this simple script:)
I'm using jQuery 1.3.2
When I click on tr, alert says "false". But when I click on checkbox alerts says "true". I need alert to say equal value each time. How to do it?
CODE:
<tr id="option-12">
<td><input type="checkbox"/></td>
<th scope="row">Аккумулятор Bosch</th>
<td class="option-price">350,00$</td>
</tr>
</table>
What I'm doing wrong?
$('.b-options-table input[type="checkbox"]').bind('click', function(event) {
event.stopPropagation();
alert(this.checked);
});
$('.b-options-table tr').click(function(event) {
if (event.target.type !== 'checkbox') {
$(':checkbox', this).click();
}
});
});
© 2013 jQuery Foundation
Sponsored by and others.