becouse textboxes are stored in viewstate i cannot use this JS code
<script type="text/javascript">
$(function() {
$.datepicker.setDefaults($.datepicker.regional["sl"]);
$(".inputTypeDate").datepicker({
dateFormat: "dd.mm.yy",
changeMonth: true,
changeYear: true
});
});
</script>
becouse code of textboxes are not visible in source code.
so i try to use this with onlcick event.
html example:
<p>Date: <input type="text" id="datepicker" onClick="$(function() {$( '#datepicker' ).datepicker({changeMonth: true, changeYear: true});});"></p>
which works but only when i click second time on textbox. How to enable calendar on first click?