I use the following jquery in my page.
var j = jQuery.noConflict();
j(document).ready(function(){
console.log(j(#label_19));
j(#label_19).on(click,function(){
alert(Clicked);
});
});
When document loads, the element (it's a checkbox) appears in the console. But when I click the checkbox, the alert is not thrown. But when I copy the same code (as below)
j(#label_19).on(click,function(){
alert(Clicked);
});
in console panel and press run. Now when I click the checkbox, the alert is thrown. What could be the issue in this case?
Updated:
What I observe in console is:
Object[input#label_19.document_label attribute value = Check-In]
The HTML markup is
<input id=label_19 class=document_label type=checkbox value=Check-In name=label[19]>