HTML elements loaded after page load not recognized by Javascript
<p>I've had this issue with two different projects and finally realized what it could have been on this most recent one. In both, I'm pulling in some dynamic text and a dynamically-valued button from SQL (in one project through a Python MVC, in the other through PHP), and I have an onclick function on the button that hides some of the text.</p>

<p>The issue that it works the second time I try it, perfectly fine. With this second project, I finally put a few alerts in the right places and realized that on the first click, the visibility/display CSS attribute has no value (not undefined, when I alert(object.style.display) it's just blank). I think that <a href="http://stackoverflow.com/questions/8877145/jquery-script-doesnt-recognize-newly-appended-elements" title="this">this</a> issue may be my answer, but with .live() depreciated in jQuery, I'm not exactly sure what to do with .on() - is the event I'm looking for load, or is there something else I should use?</p>

<p>Any help is greatly appreciated. Thanks!</p>
