How can I change border and background color of the control when any of the validation fails after submit button clicked.
I searched this in google but most of the solution provided in jQuery, but I don't want to use jQuery.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bhushan BhurePosted Aug 3, 2012, 6:17 PM
document.getElementById("<%=TextBox1.ClientID%>").style.backgroundColor = "Red"
Thanks,
Please mark this answer as accepted answer if it resolves your problem.
Hemant SrivastavaPosted Aug 3, 2012, 2:45 PM
Dinesh AmbaliyaPosted Aug 3, 2012, 1:29 AM
Hemant SrivastavaPosted Aug 2, 2012, 10:00 AM