Error Reference when assigning value to asp:textbox
<p>Hi everyone I have been having a lot of problems with Jquery right now and ended coming here to search for the problem I have, I found nothing that could help me so I decided to ask at once.</p>

<p>So I was able to bring the value of the input by using this line of code:</p>

<pre><code> $('#ClienteDialog').find('input[id$=txtAddCliente]').val()
</code></pre>

<p>But now it won't assign that value to the textbox used to store the value and use it on the code behind, it gives the following error:</p>

<pre><code> ReferenceError: invalid assignment left-hand side
 $('input[id$=txtAddType]').val() = $('#ClienteDialog').find('input[id$=txtAddCliente]').val();
</code></pre>

<p>And I really can't find anything bad about this.</p>

<p>Edit:  Hi again I tried your solution Harshit Tailor gave, but at the end it didn't work, it only seems to do it but when I check if it works by using the next code:</p>

<pre><code>$('input[id$=txtAddType]').text($('#ClienteDialog').find('input[id$=txtAddCliente]').val());
                        $('input[id$=lblTypeAdd]').val("1");
                        var a1 = $('#ClienteDialog').find('input[id$=txtAddCliente]').val();
                        var a2 = $('input[id$=txtAddType]').text();
                        var a3 = $('input[id$=txtAddType]').val();
                        var a4 = $('input[id$=lblTypeAdd]').text();
                        var a5 = $('input[id$=lblTypeAdd]').val();
</code></pre>

<p>It brings in each var:</p>

<pre><code>a1 = "Toyota" //&lt;- This is the value I input
a2 = Undefined
a3 = ""
a4 = Undefined
a5 = ""
</code></pre>

<p>Is there anyway to put the input value into the text value of the labels and textbox mentioned above?</p>
