title: show and hide button with multiple divs jquery mvc
body: <p>This is my view page:</p>
  
  <pre><code>for (int i = 0; i &lt; Model.Count; i++)
  {
    &lt;div class="row service-block" id="searchresult@(i)"&gt;
      &lt;div class="col-lg-6 col-md-5"&gt;
        &lt;div class="mrb5"&gt;
          &lt;label&gt;abc&lt;/label&gt;
          &lt;label&gt;Xyz&lt;/label&gt;
          &lt;input type="button" style="display:none;"class="bookappointmentbutton" id="btnAppointment" value="Book Appointment" /&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  }
  </code></pre>
  
  <p>And the JavaScript:</p>
  
  <pre><code>$(document).ready(function () {
    $("#searchresult").mouseenter(function () {
      $('#btnAppointment').show();
    });
    $("#searchresult").mouseleave(function () {
      $('#btnAppointment').hide();
    });
  });
  </code></pre>
  
  <p>I am displaying list of records like this:</p>
  
  <p><img src="https://i.stack.imgur.com/0FVZd.png" alt="enter image description here"></p>
  
  <p>consider this image as an example because this is how i am displaying list of records.</p>
  
  <p>now i want to do is when my mouse hovers over div say for eg <strong>searchresult0</strong> then i want to show button and on mouseleave i want to hide button.</p>
  
  <p>when my mouse hover over <strong>searchresult1</strong> then i want to display button and on leave hide button.</p>
  
  <p>but as i am generating new div for every records i am not getting how to to this with different division.</p>