Jquery getting variable value
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/14052379/how-to-get-a-value-of-jquery-variable">How to get a value of jquery variable</a>  </p>
</blockquote>



<p>JS:</p>

<pre><code>&lt;script&gt;   
    $(document).ready(function() {

        var ma = $("#qty").val();
        var str = $("#reqid").val();
        var iss = 'issue_quant_' + str;
        $("#myform").validate({
            rules: {
                iss: {
                    max: ma
                }
            }
        });

    }); 
&lt;/script&gt;
</code></pre>

<p>HTML:  </p>

<pre><code>&lt;td&gt; 
    &lt;input type="text" name="issue_quant_&lt;?php echo $array['requisition_id'];?&gt;" /&gt;
&lt;/td&gt;
</code></pre>

<p>The script is not taking the <code>str</code> value. If I get my texbox named as <code>iss</code> it works, but it doesn't work like this.</p>
