Show week of the year in jQuery datepicker

This example shows you how to display the week of the year in jQuery datepicker. To show week of the year we need to set the showWeek property value as "true".

Note: The first week of the year contains the first Thursday of the year.

Date :

Source code

<html xmlns=""> <head> <title></title> <link href="" rel="Stylesheet" type="text/css" /> <script type="text/javascript" src=""></script> <script type="text/javascript" src=""></script> <script language="javascript"> $(document).ready(function () { $("#txtdate").datepicker({ showWeek: true, firstDay: 1 }); }); </script> </head> <body> Date : <input id="txtdate" type="text"> </body> </html>