$(document).ready(function() {
clearTextBox();
});
function clearTextBox() {
$('#btnReset').onclick = function() {
$('#txtName').val = "";
$('#txtContactEmail').val = "";
$('#txtMessage').val = "";
};
}
I am using asp.net to develop my web page.
Thus, all those control are on server-side. But whenever my btnReset
is click is should be clear the textbox without refresh/postback. So i applied the javascript. But still can't work.