EasyUI Forum
May 04, 2024, 03:59:29 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Icon on Required Fields  (Read 13458 times)
cris168
Newbie
*
Posts: 2


View Profile
« 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


View Profile Email
« 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


View Profile
« Reply #2 on: October 16, 2013, 07:49:36 AM »

Hi stworthy,


       Thanks a lot! It's working now.

Cris
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!