Validation plugin hijacks click function?

Posted by timkl on Stack Overflow See other posts from Stack Overflow or by timkl
Published on 2010-03-20T20:15:22Z Indexed on 2010/03/21 1:01 UTC
Read the original article Hit count: 520

Absolute newbie question, any help is highly appreciated :)

I am using curvycorners (http://www.curvycorners.net/) in combination with the jQuery validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/), and I'm having problems getting the div to redraw the rounded corners when I do like this:

$("input[type='submit']").click(function(e) {
curvyCorners.redraw();
});

When I click the submit-button the first time the form validates, the validation error-message pops up and expands the div, causing the layout to go ugly. However when I click on it the second time the rounded corners redraw nicely.

Could it be that my validation plugin hijacks my initial click? How do I go about this? Any hint is very much appreciated.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about validation