ASP.NET - how-to-remove-error-icons-using-javascript

Asked By prince b on 08-May-13 03:10 AM
Hi,
How to remove error icons in mvc4 and passing the values to database
Here i have code in JavaScript but its not working
 function StaffHouses_Click() {
      var radio1 = document.getElementById("rdoSchStaffHousesY");
      var radio2 = document.getElementById("charSchoolHaveStaffHouses");
      if (radio1.checked == true) {
        document.getElementById("intStaffHousesCount").disabled = false;
        // document.getElementById("intWorkersCountInStaffHouses").disabled = false;
        document.getElementById("tblHostel_intWorkersCountInStaffHouses").disabled = false;
      }
      else {
        document.getElementById("intStaffHousesCount").disabled = true;
        // document.getElementById("intWorkersCount").disabled = true
        document.getElementById("tblHostel_intWorkersCountInStaffHouses").disabled = true;
        document.getElementById("intStaffHousesCount").value = "";
        //document.getElementById("intWorkersCount").value = "";

        document.getElementById("tblHostel_intWorkersCountInStaffHouses").value = "";
        
      }
    }


Please give me solution