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
            });
        });
mgmhicksAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Can you give us a link or at least a full listing.

On the latter - can you post the view source listing of the rendered html - not your .Net code. We need to see how the content and JQuery are relating to each other.

Just a comment on your use of the word "clone" I am assuming in this context you are meaning that the value of one text box is copied to another textbox.

In jQuery - clone means to make a copy (clone) of a complete element. Not quite the same thing.

Give us some html  to look at so we can see the jQuery in the context of the rest of your page.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mgmhicksAuthor Commented:
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.
Julian HansenCommented:
Can't say without seeing some code (html output)
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

mgmhicksAuthor Commented:
Problem was I had enabled='false' which apparently wont update the control in ASP, but does in html.
Thanks for the help
Julian HansenCommented:
You are welcome.
mgmhicksAuthor Commented:
I figured out what was going before solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.