Hi,
In My MVC application I need to remove error tool tips when a radio button is changed and here I have written the following method but it is not working,so what is the problem and please give me the solution
$(document).ready(function () { $("#charSchoolHaveStaffHouses").change(function () { if ("#charSchoolHaveStaffHouses".checked) { $("#intStaffHousesCount [data-val]").attr("data-val", true); $("#intStaffHousesCount ").show(); } else { $("#intStaffHousesCount [data-val]").attr("data-val", false); $("#intStaffHousesCount [data-val]").removeClass(); $('intStaffHousesCount.validation-summary-errors').removeClass('myStyle input-validation-error'); $('intStaffHousesCount.validation-summary-errors').removeClass('field-validation-error ui-state-error-icon ui-icon-alert'); //field-validation-error ui-state-error-icon ui-icon-alert // $("#intStaffHousesCount ").hide(); } }) });
In the above when changing the radio buttons the textbox should be disabled and needs to remove error providers
Thanks in advance
In My MVC application I need to remove error tool tips when a radio button is changed and here I have written the following method but it is not working,so what is the problem and please give me the solution
$(document).ready(function () { $("#charSchoolHaveStaffHouses").change(function () { if ("#charSchoolHaveStaffHouses".checked) { $("#intStaffHousesCount [data-val]").attr("data-val", true); $("#intStaffHousesCount ").show(); } else { $("#intStaffHousesCount [data-val]").attr("data-val", false); $("#intStaffHousesCount [data-val]").removeClass(); $('intStaffHousesCount.validation-summary-errors').removeClass('myStyle input-validation-error'); $('intStaffHousesCount.validation-summary-errors').removeClass('field-validation-error ui-state-error-icon ui-icon-alert'); //field-validation-error ui-state-error-icon ui-icon-alert // $("#intStaffHousesCount ").hide(); } }) });
In the above when changing the radio buttons the textbox should be disabled and needs to remove error providers
Thanks in advance