lundi 22 juin 2015

Respond to a change in checkbox value

I'm familiar with .change() however, this particular checkbox can be checked from the following

A: this checkbox

B: Select all checkbox in <thead>

C: Select parent <tr>

$('#tblSubmissions').on('change', 'input[type="checkbox"]', function() {
    //only works with option A
});

is there a way to respond to a change in the value of the checkbox without needing something like knockout?




Aucun commentaire:

Enregistrer un commentaire