SO fiddle

Test Fiddle mainly for SO Questions

by Nick Craver

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/overcast/jquery-ui.css">
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />
<input type="text" class="datePicker" maxlength="20" readonly="true" style="width: 70px;" />

JavaScript

$(document).ready(function () {
    $('.datePicker').live('click', function () {
        $(this).datepicker({ 
            showOn: 'focus',
            changeMonth: true,
            dateFormat: 'dd/mm/yy',
            minDate: '+0d',
            maxDate: '+1y'
        }).focus();
    });
});