Title: Keeping textbox value and screen in sync Post by: stephenl on July 04, 2021, 03:01:25 AM Inorder to keep a textbox value and the displayed value in sync, I need to issue 2 statements
// As a test - populate the value with 99 $(this).find("input[name='seq1']").attr("value",99); // Value changes but screen doesn't update // Using textbox method updates the screen but not the value $("#seq1").textbox('setText', 99); Is there a way in which both the value and screen can be updated with one statement ? Thank you Title: Re: Keeping textbox value and screen in sync Post by: stephenl on July 04, 2021, 07:57:48 AM setText and setValue does this trick $(d).textbox('setText', 99).textbox('setValue', 99); |