When I call the below function Selectall
, the alert
doesn't appear.
function Selectall(){
$("INPUT[id^='DefaultContent_checkAllWebObjectCheckBox_").on('change', function () {
$("INPUT[id^='DefaultContent_checkLstWebObjects_']").prop('checked', $(this).prop("checked"));
alert('Hello');
});
}