I have a rangevalidator on a textbox control that is firing correctly for me. I get my error text to display.
What I'd like to do is click on a 'clear field' button that will clear out all textbox entries on the page, and also the error text from the rangevalidator.
How do I clear the rangevalidator text, but still have it continue to show the text on subsequent calls?
To clear the text, I have:
document.getElementById("Mytext").innerText = "";
document.getElementById("rvMytext").innerText = "";
Running this will remove the value and text, but then if the rangevalidator fails again, I can't see the error anymore since it's erased.
It seems setting the caseID in javascript to "" doesn't fire the rangevalidator. Is there a way to do this?
Thanks.
What I'd like to do is click on a 'clear field' button that will clear out all textbox entries on the page, and also the error text from the rangevalidator.
How do I clear the rangevalidator text, but still have it continue to show the text on subsequent calls?
To clear the text, I have:
document.getElementById("Mytext").innerText = "";
document.getElementById("rvMytext").innerText = "";
Running this will remove the value and text, but then if the rangevalidator fails again, I can't see the error anymore since it's erased.
It seems setting the caseID in javascript to "" doesn't fire the rangevalidator. Is there a way to do this?
Thanks.