EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
April 19, 2024, 04:00:28 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Keeping textbox value and screen in sync
Pages: [
1
]
« previous
next »
Print
Author
Topic: Keeping textbox value and screen in sync (Read 2900 times)
stephenl
Newbie
Posts: 30
Keeping textbox value and screen in sync
«
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
Logged
stephenl
Newbie
Posts: 30
Re: Keeping textbox value and screen in sync
«
Reply #1 on:
July 04, 2021, 07:57:48 AM »
setText and setValue does this trick
$(d).textbox('setText', 99).textbox('setValue', 99);
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...