user3680708 user3680708 - 4 months ago 19
jQuery Question

Add most of a id on JQuery

How can to add a new id in my $(), in this code I added an only id, but I need add other more.
Thanks!

$('#editable-detail').editableTableWidget();

$('#editable-detail td.uneditable').on('change', function(evt, newValue) {
return false;
});

Answer

you either do like:

$('#editable-detail, #editable-detail2, #editable-detail3').editableTableWidget();

or (Recommended):

use classes instead of id (you should give them all the same class):

$('.editable-detail').editableTableWidget();
Comments