$("#frmNewContracts").validate({
errorClass : "state-error",
validClass : "state-success",
errorElement : "span",
rules: {
txtusername : { required : true,
rangelength : [5, 18],
remote : { url : "./_aQ8/auxphp/ajxcontrol.php", type : "get" }
}
},
messages: {
txtusername : { required : "User-name is required",
rangelength : "User-name must be between 5 - 18 characters",
remote : $.validator.format("User-name : <strong>{0}</strong> is already taken please try another")
}
},
errorLabelContainer: "#joinerrgroup",
wrapper: "li"
});
Hi, As the question suggests i have a form validating with jQ Validate plugin the code provided above is a snippet I've isolated AND tried alone with my html form and the problem is the same.
The Problem Is : The username should update dynamically (or so i thought) to display the users entered username when it already exists in the DB table - all is working ok but when testing and trying several duplicate Usernames, deliberately to check the functionality, the message displays correctly but the username continues to show the FIRST duplicate username entered. It does not update to show the duplicate name currently in the username form field. Is this normal behavior i do i need to do something else??