EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: mshaffer on December 04, 2016, 07:45:43 AM



Title: validatebox success
Post by: mshaffer 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

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


Title: Re: validatebox success
Post by: stworthy 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>