Where is the documentation that explains why/how this works? jQuery interprets an undeclared variable as an id. I find this odd, and encountered by chance. How does it work?
HTML
<div id="wrapper"> <input id="a" value="click" type="button" /> </div> JS
$(wrapper).on("click", "#a", function(){ alert("test"); });