jQuery UI Widgets › Forums › General Discussions › Plugins › Validator, Drag & Drop, Sortable › Custom style on input validator
This topic contains 6 replies, has 2 voices, and was last updated by hsolar 8 years, 8 months ago.
-
Author
-
Hi there
I need to make a custom style for a validator on a input text
i can make my own hint element with hintrender and add a class to the input but then i can’t remove it when the rule is Ok
is there any way to do that?best regards
I made an example here:
http://jsfiddle.net/hugosolar/uyumdekr/1/i can’t make dissapear the validate-error class from the input text when the validation is Ok
there is no event for that just when you ask for a validate all the form or for each input
anyway there is no method to know if the input validation is Okthis is the link, sorry http://jsfiddle.net/hugosolar/uyumdekr
Hello hsolar,
We recommend to use only described classes I would suggest you look at this tutorial:
http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxvalidator/jquery-validator-styling-and-appearance.htm?search=validat
Please, take a look at this demo:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxvalidator/defaultfunctionality.htm?light
If you want to set some custom rule and one default you should separate them. You should add a new rule in the array for each one of them.
Also, please, take a look at this example.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi Hristo
i have readed that. the thing is that i need to identify the input with validation error to put it a red border and add an icon with a tooltip with the error text.
I tried with the hintType: ‘label’ to get a class to identify the input with validation error but when i use the hintRender callback the class is lost.
i need to achieve this http://go.arau.co/UH1uBDg3wl/best regards
Hello hsolar,
Please, take a look at this example.
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comooo I see
thanks a lotbest regards
-
AuthorPosts
You must be logged in to reply to this topic.