EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
June 16, 2024, 06:49:47 AM
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
>
General Discussion
>
Icon on Required Fields
Pages: [
1
]
« previous
next »
Print
Author
Topic: Icon on Required Fields (Read 13699 times)
cris168
Newbie
Posts: 2
Icon on Required Fields
«
on:
October 15, 2013, 07:18:10 AM »
Hi,
I'm using a this attribute data-options="required:true,validType:'text'" and it works fine.
Problem:
When I assign a value on the textbox from a variable. And now, the textbox has the same value from the variable (which is not null or empty).
How do we remove the icon that indicates that this field is required? (We don't need the icon anymore because the textbox has a value already.)
Please help.
Cris
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Icon on Required Fields
«
Reply #1 on:
October 15, 2013, 08:11:22 PM »
When you set a new value to the validate box, you need to call 'validate' method manually to refresh the validating information.
Code:
$('#box').val('new value').validatebox('validate');
Logged
cris168
Newbie
Posts: 2
Re: Icon on Required Fields
«
Reply #2 on:
October 16, 2013, 07:49:36 AM »
Hi stworthy,
Thanks a lot! It's working now.
Cris
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...