Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
18
Reply
How to change the textbox color with repect to error message
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Manoj Maharana
8y
486
1
Reply
I want to change the error message border color on text box
here is the code:
function ValidateFrom() {
if (document.getElementById("<%=txtCategoryName.ClientID %>").value.trim() == "") {
document.getElementById("<%=dvMessage.ClientID %>").innerHTML = "Please enter Category.";
document.getElementById("<%=txtCategoryName.ClientID %>").focus();
// document.getElmentById(val.controltovalidate).style.border = '3px solid red';
return false;
}
by default in form-control it will takes blue..i want while changes on error message show red border..
Post
Reset
Cancel
Answers (
18
)
Next Recommended Forum
how to make as list selection
how to make auto complete text box