$("body").on("click", "$[id *= ddlHour]",
function () {
ValidateDate();
}
);
This is working fine in jQuery 1.7.1 but when I upgrade to 1.12.4 it gives the following error:
Uncaught Error: Syntax error, unrecognized expression: $[id *= ddlHour]
I tried
$("body").on("click", "$('[id*=\"ddlHour\"]')",
function () {
ValidateDate();
}
);
but I am still getting the same error. Does anyone know what is going wrong?