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
Gayatri Pattar
NA
25
75.2k
how to clear textbox after alert in javascript?
Dec 30 2013 6:25 AM
Hi,
After selecting date from calender control if the date is out of range it should display alert message after clicking ok on alert message ,the date appeared in textbox should get cleared.
I have written javascript as follows
<script type="text/javascript">
function CheckDueDate(sender,args)
{
if (sender._selectedDate >= 31 / 05 / 1995 || sender._selectedDate <= 01 / 06 / 1948)
{
alert("Age should be in between 18 to 65");
}
}
</script>
It shows message but m not able to clear the textbox. Please Help me.
Reply
Answers (
2
)
How to print a hidden image using Javascript.
add calendar feature to textbox in html