EasyUI Forum
May 07, 2024, 07:54:26 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: validatebox success  (Read 3457 times)
mshaffer
Newbie
*
Posts: 21


View Profile
« on: December 04, 2016, 07:45:43 AM »

Hi,

Is there a trigger to do "success" ... e.g., a green check box or a highlight or something.

So it starts as a red box, a border highlight function would be nice, or a green "checkbox" if it returns true.

See for example:

https://github.com/ushelp/EasyCheck/blob/master/doc/images/tooltip.png

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 06, 2016, 02:10:59 AM »

You can custom the CSS style for the invalid textbox.
Code:
<style>
    .validatebox-invalid{
        background: #fff;
    }
    .textbox-invalid{
        outline-color: #ff0000;
        box-shadow: 0 0 3px 0 #ff0000;
    }
</style>
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!