There is such code:
<_tr class="table_rows">
<_td><_input name="del[{$item->id}]" type="checkbox" id="del[{$item->id}]" value="1">
<_td>
<_input name="test" type="text" id="test" value="123" size="60">
<_/td>
<_td>
text
<_/td>
<_/ tr>
The above code is used to output the list of documents, clicking on them line by line must be placed in the checkbox. The problem is that when you click on other checkboxes, links or input fields the first checkbox is selected. How to make limit?
$('.table_rows').click(function() {
$(this).toggleClass("selects");
if( $(this).find("input").is(":checked"))
{
$(this).find("input").removeAttr("checked");
} else {
$(this).find("input").attr("checked","checked");
}
});