title: cant call jquery function with onclick event
body: <p>i wrote this code, to change the previous textbox value  but its not working  , by clicking on ok button i want to change Text1 text.its only a example to show the problem , i cant not access to ID of that Textbox! so in code i go until visit the div with class=stop and change the textbox value </p>
  
  <pre><code>&lt;div style="width:500px;" class="siblings"&gt;
      &lt;div class="stop" &gt; &lt;/div&gt;
      &lt;input  id="Text1" type="text" /&gt; &lt;br&gt;
      &lt;--!  more elements will be  here  !--&gt;
      &lt;input  type="Button" value="ok" onclick='$(this).parent().prevUntil("div.stop").val("new text");'/&gt;                                                                    
  &lt;/div&gt;
  </code></pre>