How To Keep The Class Of A Asp Textbox On Partial Postback
I was hoping the JQuery script will ensure any textbox which isn't readonly will apply update to the class but that is not happening and also the alert isn't even being displayed.
Solution 1:
You can change the CssClass in the server instead of using JS;
You can also change the logic to watch the parent element and change the class of each textbox.. according with the ReadOnly attribute, for example.
$(document).on("change", "#upPerson", function(){
$("input[readonly=true]").removeClass("colorBlue").addClass("colorRed");
});
I did not test anything, but that's the logic.
Post a Comment for "How To Keep The Class Of A Asp Textbox On Partial Postback"