Completed

Customise Jquery datepicker

This project was successfully completed by shyamnr for $12 AUD in 2 days.

Get free quotes for a project like this
Employer working
Project Budget
$10 - $30 AUD
Completed In
2 days
Total Bids
6
Project Description

I need help customising jquery datepicker for my shopify store. I need to be able to disable specific dates (for public holidays and so on) and Sundays if possible.

If possible, once the date has been picked if you are able to also adjust the default date format to display as dd-mm-yy that would be great.

Below is the code that I have so far which is currently disabling weekends which I need adjusted to achieve the above.

Thanks!

{{ '//[url removed, login to view]' | stylesheet_tag }}

{{ '//[url removed, login to view]' | script_tag }}

<div style="width:90%; clear:both;">

<p><label for="date"><strong>Preferred delivery day:</strong><br>(from next business day if ordered by 5pm)<br>We do not deliver On Sundays or public holidays.</label>

<input id="date" type="text" name="attributes[date]" value="{{ [url removed, login to view] }}" />

</p>

</div>

<script>

jQuery(function() {

jQuery("#date").datepicker( {

minDate: +1,

maxDate: '+2M',

beforeShowDay: [url removed, login to view]

} );

});

</script>

Completed by:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online