I have a small situation here. I have a grid view with checkboxes. Now I want to have checkbox column so that when I select 1 checkbox in the checkbox column, all checkboxes in the row will be checked. Atleast that is what I want.
However, I can not seem to get a trigger on a checkbox with jQuery to see if a checkbox is checked or not. How can I accomplish this?
Problem is that the checkbox is not really a checkbox as a normal input. It’s been altered because of Twitter bootstrap I think.
I think i found some info that I can use. I read over it in the documentation. According to the documentation with this JS line I should be able to get the selected checkboxes:
var keys = $(’#grid’).yiiGridView(‘getSelectedRows’);