title: Getting HiddenField value upon clicking the button
body: <p>I want to get the value of the hiddenfield when clicking the button <b>BUT</b> from the parentNode of the button I just clicked.</p>
  
  <pre><code>&lt;div id="wrapper"&gt;
    &lt;div id="gameInfo"&gt;
       &lt;input type="text" ID="gameTitle" disabled="disabled" /&gt;
       &lt;input type="text" ID="gameType" disabled="disabled" /&gt;
       &lt;input type="text" ID="gameprice" disabled="disabled" /&gt;
       &lt;asp:HiddenField runat="server" ID="Hiddenf"&gt;
       &lt;input type="button" id="button1" value="enable" onclick="myFunc(this)" /&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>so I have this javascript here which when clicked the button it gets the parent node of the button and enables all the fields in that parent div as you can see, any way I could incorporate it into this function? Also I would need to be able to get this value in the code behind once I have retrieved the value from the hidden field.</p>
  
  <pre><code>function myFunc(elm){
  for( var inputs = elm.parentNode.querySelectorAll('input[type="text"]')
    ,          L = inputs.length
    ; L--
    ; inputs[L].disabled = false  //enable inputs
    ); //end loop
  }
  </code></pre>