<div dir="ltr"><div>I have the following in Drupal.behaviors:<br><br>$(context).find(&#39;#x&#39;).prepend(&#39;&lt;div class=&quot;settings&quot;&gt;&lt;/div&gt;&#39;);<br>      $(context).find(&#39;div.settings&#39;).click(<br>
        function () {<br>          $(&#39;#p&#39;).show();<br>        },<br>        function () {<br>          $(&#39;#p&#39;).hide();<br>        }<br>      );<br></div>The div gets prepended, but the click does nothing. If I just enter the jQuery(&#39;#p&#39;).show() in the console, it works fine.<br clear="all">
<div><div><br>-- <br>---<div><a href="http://drupal.org/user/367108" target="_blank">drupal.org/user/367108</a></div><div><a href="http://linkedin.com/in/jeffrgreenberg" target="_blank">linkedin.com/in/jeffrgreenberg</a></div>
<div><a href="http://accidentalcoder.com" target="_blank">accidentalcoder.com</a> / <a href="http://ayendesigns.com" target="_blank">ayendesigns.com</a></div><div>@accidentalcoder</div>
</div></div></div>