Link to home
Start Free TrialLog in
Avatar of mgmhicks
mgmhicks

asked on

Why jquery clone update doesnt work in code behind

I have the following script, so when one textbox is changed it changes or clones to another.  However in code behind, even thought the text seems to be there on the browser, comes back empty "".  What am I missing here.  Thanks  (I have tried it with clientID and without.


 $(function () {
            $('#MainContent_txtOther').keyup(function () {
                var txtClone = $(this).val();
                $('#<%=txtAmt.ClientID%>').val(txtClone);
                //$('#MainContent_txtAmt').val(txtClone);
                $('#MainContent_txtAmt').formatCurrency();2
            });
        });
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mgmhicks
mgmhicks

ASKER

Bad use of words "Clone" the text is just be copied to another textbox.  The browser shows the textbox, but the control is nothing in code behind.  After a little more thought I believe the server control is not being updated by my jquery function and I may need to use a update panel on my submit button to update the control before I try and use it in code behind.
Can't say without seeing some code (html output)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You are welcome.
I figured out what was going before solution.