please help me, how can i edit my javascript to submit form after select a date
Date: <div id="datepicker"></div>
<form action='?data=$data' method='POST' enctype='multipart/form-data'></form>
<script>
$(function() {
$( '#datepicker' ).datepicker( $.datepicker.regional[ 'it' ] );
$( '#locale' ).change(function() {
$( '#datepicker' ).datepicker( 'option',
$.datepicker.regional[ $( this ).val() ] );
});
});
</script>
I found solution. You may rewrite code like this.
This code from another post