•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,574 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,828 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 514 | Replies: 2
![]() |
•
•
Join Date: Jul 2008
Location: Hyderabad,India.
Posts: 522
Reputation:
Rep Power: 2
Solved Threads: 53
helloo try this..
javascript Syntax (Toggle Plain Text)
<script> function ValidateDate(CtrlSDate,CtrlEDate) { var SDate = document.getElementById(CtrlSDate).value; var calendarDate = getCalendarDate(); var alertReason1 = 'End Date must be greater than or equal to Start Date.' var endDate = new Date(calendarDate); var startDate= new Date(SDate); if(SDate != '' && EDate != '' && startDate > endDate) { alert(alertReason1); document.getElementById(CtrlEDate).value = ""; return false; } } </script>
Last edited by Shanti Chepuru : 19 Days Ago at 6:46 am.
Champions Are Not SuperNatural,They Just Fought For One More Second When Every One Else Quit...Some times That One Second Of Effort Gives You The VICTORY...
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
Similar Threads
- JavaScript form validation - please help (JavaScript / DHTML / AJAX)
- start-date end-date Validation (JavaScript / DHTML / AJAX)
- date validation (JavaScript / DHTML / AJAX)
- Date Validation in HTML (JavaScript / DHTML / AJAX)
- date validation (ASP.NET)
- Custom Web Server Control That Validate Itself (ASP.NET)
- Javascript, Form fields validation and submit (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: [help] Javascript Random Generator
- Next Thread: [Help] Javascript Quiz


Linear Mode