I have the most simple .on function i could write. it started off as trying to validate a form on load, then after many minutes of frustration I tried the following:
$('p').on('load',function(){
console.log("hello");
});
This doesn’t even work. I’m baffled. Ive tried it both IN and outside of $(document).ready(), neither work, and ive also checked console, there are no errors with my JS.
What could be causing this, its making me so mad
demo
You can always check for existence using
length: