[Solved] All the div content changing when clicking only one div in the foreach loop


I have checked your question and it seems to be working fine at my PC. I would appreciate if you can share browser information for further investigation. Meanwhile, I am sharing the code which is working perfectly.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
     <head>
      <title> New Document </title>
      <meta name="Generator" content="EditPlus">
      <meta name="Author" content="">
      <meta name="Keywords" content="">
      <meta name="Description" content="">
      <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
     </head>

     <body>
      <div class="content">Lorem Ipsum</div>
      <div class="content">Lorem Ipsum</div>
      <div class="content">Lorem Ipsum</div>
      <div class="content">Lorem Ipsum</div>
      <div class="content">Lorem Ipsum</div>
      <div class="content">Lorem Ipsum</div>
      <div class="content">Lorem Ipsum</div>
      <div class="content">Lorem Ipsum</div>
     </body>
     <script>
     $(function()
     {
        $('.content').click(function() {
            $(this).html('Hello');
        })
     });
    </script>
    </html>

solved All the div content changing when clicking only one div in the foreach loop