a want that, he found all select elements with id than begins with 'chbTypes' and write something like that
$("input[id^='chbTypes']").change(function() {
//some operations
});
but it's not works. some idea, please.
a want that, he found all select elements with id than begins with 'chbTypes' and write something like that
$("input[id^='chbTypes']").change(function() {
//some operations
});
but it's not works. some idea, please.
I think you meant to use :input
(which matches select
, input
, etc) instead of input
which only matches input
.
$(":input[id^='chbTypes']");
If you want just the select elements:
$("select[id^='chbTypes']");