JQuery datepicker


<!-- jQuery date picker -->
<link rel="stylesheet" media="screen" type="text/css" href="<%=request.getContextPath()%>/display/datatable/support/themes/smoothness/jquery-ui-1.8.4.custom.css" /> 
<script type="text/javascript" src="<%=request.getContextPath()%>/display/jquery-1.3.2.min.js"></script> 
<script src="<%=request.getContextPath()%>/display/datepicker/jquery.ui.datepicker-nl.js"></script>
<script src="<%=request.getContextPath()%>/display/datepicker/jquery.ui.datepicker-en-GB.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/display/jquery-ui-1.8.16.custom.min.js"></script>

 <script>
 //datepicker locale changer 
$(function() {
 var locale = $('#l').val();
 if(locale == 'nl_NL')
 $.datepicker.setDefaults($.datepicker.regional['nl']); 
 $("#datepicker").datepicker({
 yearRange: "-111:-1", // restricting date 
 dateFormat: 'dd/mm/yy',
 changeMonth: true,
 changeYear: true
 }); 
 
});
 </script>
<!-- jQuery date picker -->
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s