• Post Reply Bookmark Topic Watch Topic
  • New Topic

date validation  RSS feed

 
Mohan Mehra
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want output as follows:

from month :
to month :

infront of "from month" i want a dropdown of months ie from jan to dec similarly to "to month" .Also there should be validation ie "from date" should not be greater than "to date". tried searching google but no much help. using javascript
 
Prashant Chindhade
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi this is the javascript function that i have used in one of my application but i have a date that is selected from calendar so it is like this '13-09-2011'. you have to get each and every text from drop down list and combine it and than convert it to date format

here is the js function



and in jsp file in form tag put as follow

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!