AJS.$(document).ready(function() {
console.log(AJS.$("#dialog-show-button").length);
});
displays 0 but it displays 3 when i ran in browser console. Please help me here what it is going wrong?
Regards,
Anil
Seems like elements are lazy loaded!!
You can give AJS.$.live() a trial if that fits your need. Please refer JQuery documentation for details.