Side navigation
#3615 closed bug (worksforme)
Opened November 17, 2008 11:05AM UTC
Closed June 10, 2009 09:55AM UTC
Last modified March 14, 2012 11:46PM UTC
Validation plugin does not show errors on form in IE if <button> is used instead of <input type="submit"
Reported by: | primski | Owned by: | joern |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | plugin | Version: | 1.2.6 |
Keywords: | validation, plugin, ie | Cc: | primski |
Blocked by: | Blocking: |
Description
In Internet Explorer, test in v6 and v7, validation plugin does not show errors if form submited is not valid and <button> is used instead of <input type="submit"...
example:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF8" />
<script language="javascript" type="text/javascript" src="jquery-1.2.6.min.js"></script>
<script language="javascript" type="text/javascript" src="jquery.validate.js"></script>
<script>
$(document).ready(function() {
$("#theForm").validate({
rules: {
field1: "required"
}
});
});
</script>
</head>
<body>
<form id="theForm" action="" method="GET">
<input type="input" name="field1" />
<button name="save">Save button</button>
<input type="submit" name="save2" />
</form>
</body>
</html>
Clicking on <button> no erorrs show up, although if form is valid it gets submited with no problems.
Clicking on <input type="submit"> everything works as intended.