I have the following code:
<td><input class="publish" id="publish_company_ids" name="publish_company_ids[]" type="checkbox" value="1" /></td>
<td><input class="discard" id="discard_company_ids" name="discard_company_ids[]" type="checkbox" value="1" /></td>
I'd like when I click the first checkbox, the second checkbox to become disabled. I am trying this jquery code:
$(".publish").click(function () {
$(this).parent().next("td > input[text='checkbox']").css("border","1px solid green");
});
I tried by changing css border but it doesn't work.