jquery datepicker: validate date mm/dd/yyyy

Posted by Abu Hamzah on Stack Overflow See other posts from Stack Overflow or by Abu Hamzah
Published on 2010-04-26T17:51:12Z Indexed on 2010/04/26 17:53 UTC
Read the original article Hit count: 500

Filed under:
|
|

i have a textbox adn a datepicker next to it and i am using asp.net and the user can enter the date as well select the date from datepicker.

how would you validate if the date is entered correct?

  <script type="text/javascript"> 
        $(document).ready(function () { 
            $('#<%=StartDate.ClientID%>').datepicker({ showOn: 'button', 
                    buttonImage: '../images/Calendar.png', 
                    buttonImageOnly: true, onSelect: function () { }, 
                    onClose: function () { $(this).focus(); } 
            }); 
        }); 
    </script> 

© Stack Overflow or respective owner

Related posts about datepicker

Related posts about jQuery