assign jquery variable to input
<p>I am trying to pass jquery variable value to input text. I tried the below and getting message "The left-hand side of an assignment must be a variable". How to send jquery variable value to input box?</p>

<p>//Input is as below</p>

<pre><code>&lt;input  type="hidden" id="rowValues" value="" name="rowValues"&gt;
</code></pre>

<p>//jquery is as below. rowData variable value should be passed to input </p>

<pre><code> var rowData = JSON.stringify(rows); ; 

$("#rowValues").val() = rowData; 
</code></pre>
