I need to clear/reset the textbox value when it is set to read only = true or Enabled = false . I used reset function in my code but this doesnt work . My code as
function resetForm($form) {
$form.find('input:text, input:password, input:file, select').val('');
$("input[type='hidden']", this).each(function () {
this.value = '';
});
$form.find('input:checkbox')
.removeAttr('checked').removeAttr('selected');
}
<asp:TextBox ID="txteventid" runat="server" ReadOnly="true"/>
Any suggestions ..