Skip to content

Instantly share code, notes, and snippets.

@1dolinski
Created August 2, 2013 13:55
Show Gist options
  • Save 1dolinski/6140070 to your computer and use it in GitHub Desktop.
Save 1dolinski/6140070 to your computer and use it in GitHub Desktop.

This is in a post index view file

<input type="hidden" id="dp" />

this is in the posts.js file

 $("#dp").datepicker({
        buttonImage: '../images/icon_star.gif',
        buttonImageOnly: true,
        changeMonth: true,
        changeYear: true,
        showOn: 'both',
     });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment