As you can see, this is still throwing error, because the element is not ready yet.
- Are you sure you have an element with
loadButton
unique id? - Try wrapping your code within
$(document).ready(function() {
// your custom code goes here...
});
As you can see, this is still throwing error, because the element is not ready yet.
loadButton
unique id?$(document).ready(function() {
// your custom code goes here...
});