how to get a python value from input type hidden in jquery
<p>I have this code:</p>

<pre><code>&lt;div class="popup" data-popup="popup-1"&gt;
    &lt;div class="popup-inner"&gt;
        {{=form.custom.begin}}
            &lt;div style="display:none"&gt;
                &lt;input id="co_srid" type="hidden" value='{{=form.custom.widget.service_request_id}}' /&gt;
        {{=form.custom.end}}
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<pre class="lang-js prettyprint-override"><code>$(document).ready(function(){
    var cosrid = $("#co_srid").val();
    alert("value is-" + cosrid);
});
</code></pre>

<p>I want to get the value of <code>#co_srid</code> that has a value from a Python code, now I when I <code>alert</code> the value I get this</p>

<p><a href="http://i.stack.imgur.com/PILkr.png" rel="nofollow"><img src="http://i.stack.imgur.com/PILkr.png" alt="enter image description here"></a></p>

<p>Is there anyway I can get the value <code>9</code> only?</p>

<p>I changed</p>

<pre><code>value='{{=form.custom.widget.service_request_id}}'
</code></pre>

<p>to</p>

<pre><code>value='{{=get_data.service_request_id}}'
</code></pre>

jquery python web2py