title: how to bind click event of div
body: <pre><code>&lt;div id="profile_ops" style="display:none"&gt;
    &lt;button class="ybutton" id="viewclick" &gt;View&lt;/button&gt;&amp;nbsp;
    &lt;button class="ybutton" id="editclick" &gt;Edit&lt;/button&gt;&amp;nbsp;
    &lt;button class="ybutton" id="change_pswd" &gt;Change Password&lt;/button&gt;&amp;nbsp;
    &lt;button class="ybutton"  id="change_pic" &gt;Change Picture&lt;/button&gt;&amp;nbsp;
  &lt;/div&gt;
  </code></pre>
  
  <p>in this i show this div on particular condition and i hide the view button but on edit click i show the view button but i want to give click event of view button where should i give the click event of div ? </p>
  
  <p>i have tried giving the click event in edit click but it is giving me errro?</p>