title: Jquery: find and replace text is not working
body: <p>I want to change the text of h2</p>
  
  <pre><code>&lt;div id="freeads_box" class="freeads_box"&gt;
    &lt;input value="3" type="radio" name="radioname"&gt;
    &lt;h2&gt;sometest &lt;/h2&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>var x=4;
  $("#freeads_box").find("input[value='3']").next("h2").html(x);
  $("#freeads_box").find("input[value='3']").siblings("h2").html(y);
  $("#freeads_box").children("input[value='3']").end().children("h2").html(x);
  </code></pre>
  
  <p>But nothing seems to change the text in h2</p>
  
  <h2>update</h2>
  
  <pre><code>var s=$(".freeads_box").find("input[value='3']").val();
  alert(s);
  </code></pre>
  
  <p>prints undefined</p>
  
  <p>Thanks in advance</p>