title: Double click function in jQuery is not working
body: <p>I have two span elements in a page. when I call a jquery double click function on both then the function is called only on first element. I am using the following code:</p>
  
  <pre><code>&lt;span id="shiftTime_1"&gt;1&lt;/span&gt;
  &lt;span id="shiftTime_2"&gt;1&lt;/span&gt;
  </code></pre>
  
  <p>and jquery function is:</p>
  
  <pre><code> $("[id^='shiftTime_']").dblclick(function() {
   alert("hello");
   });
  </code></pre>
  
  <p>when I double click on the element Id of shiftTime_1. then the function works fine. But when I double click on element Id of shiftTime_2 then this function does not respond.</p>
  
  <p>Please help.
  Thanks</p>