title: Action on multiple elements
body: <p>I have 2 elements on my page, which I click button1 it should hide whereas when I click the block element <p> the background color should be change to green..</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
  
          &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;
          &lt;/script&gt;
          &lt;script&gt;
              $(document).ready(function(){
                  $("#button1").click(function(){
                  $(this).hide();
                  });
              });
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;button id="button1"&gt;Button1&lt;/button&gt;
          &lt;p&gt;This is a block element&lt;/p&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>