TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
satheesh kumar
NA
3
8.4k
Empty Text Box Validation Not Working
Apr 12 2016 11:02 PM
OnClientClick="return Validate()"
function Validate()
{
console.log("kkkk");
alert("pppp");
var pgng = document.getElementById("ContentPlaceHolder1_txtUsername").value.trim();
alert(pgng=='');
console.log(pgng);
if (document.getElementById("ContentPlaceHolder1_txtUsername").value.trim() == '') {
alert('The textbox should not be empty...');
document.getElementById("ContentPlaceHolder1_txtUsername").focus();
return false;
}
return false;
}
Reply
Answers (
2
)
Hibernate inserts duplicate record.
How to check if string contains certain word in JScript