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
elements aren't loaded. If you're injecting them yourself, can't you also call this function yourself? ie: Why not call validate() right after the replaceWith()?
– WhyNotHugo Jul 27 '12 at 19:45