How to return the value of a hidden input using jQuery?
<p>I am trying to get the value of a hidden input.</p>

<p>my current hidden looks like this</p>

<pre><code>&lt;input type="hidden" name="extend_1" id="extend_1" value="16:00:00"&gt;
</code></pre>

<p>so I try to get that value when $('time') is changed</p>

<p>so I have this code in my page but the value is always undefined! I am using jQuery 1.9</p>

<pre><code>$('time').change( function(){
        var this_id = "extend_" + $(this).val();
//if i alert this_id i not get "extend_1" howeven max_time is always returning undefined where it should display "16:00:00"
        var max_time = $( this_id ).val();
        console.log( max_time )
});
</code></pre>

<p>Can anybody please tell me what is wrong? why is max_time is always undefined?</p>

<p>Thanks</p>
