jquery validation or any other validation

genius_geek
genius_geek used Ask the Experts™
on
does anyone know of any form validation plugins that display a x inside the textbox if there is error. I know of a few jquery validation plugins but they dont fit the requirements i am looking for.

It could be either jquery, prototype, ajax
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
You can jquery validator.

http://bassistance.de/jquery-plugins/jquery-plugin-validation/

You will have to do some hacking.

Change the error message to 'X'. Then change the CSS for label error message. Using margin-top and margin-left in negative values, you can show the X inside the text box.

Let me know if you need more details.
Take a look at this jsfiddle

$("input").keyup(function() {

    if (parseInt($(this).val()) != $(this).val()) {
        $(this).removeClass("valid");
        $(this).addClass("invalid");
    } else {
        $(this).addClass("valid");
        $(this).removeClass("invalid");
    }
});

Open in new window

Author

Commented:
thanks. thats what i was looking for. dont delete the jsfiddle, i will need to reference it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial