Validation - Error doesn't hide
I have an input text box and input checkbox with the same name. When the checkbox is clicked I use JQuery to disabled the text input and renabled it when it is unchecked. I have "required" validation on text input box.
function SetNullCheckboxes(checkbox) {
var checkbox = $(checkbox);
var disabled = "disabled";
var checked = checkbox.is(":checked");
var textbox = checkbox.siblings("input[type='text']");
textbox.attr(disabled, checked ? disabled : "");
if (checked) {
textbox.val("");
}
$("#reportConfigForm").valid();
};
The validation error isn't removed when I check the box but when I call valid() during the click handler of another button it is removed. I have stepped into the validation source and it get all the way to the hideErrors function (line 379) with a reference to this error in the toHide property but the hide() call doesn't do anything.