jquery checkbox selection

Mar 13, 2012   //   by phpfreelancer.biz   //   Blog, Jquery Tutorial  //  No Comments

If I selecting the check box the corresponding row is selected. I want to change that as
only one will be highlighted at a time.

If i select check box 2 then the check box 2 will be checked and this row only be highlighted and remaining check box should unchecked and remove the highlighting.

Here’s the code:

$('input.high').not(this).attr('checked', null).closest('tr').css('background-color', '#fff');

Leave a comment

Share This Post

RSS Wordpress News