Hi, Other than the fact that "ChangeMonth" should be "changeMonth", I could not see a problem with the code pasted above. Do you have an example page online demonstrating your page not working?
Thanks. On Thu, Jun 11, 2009 at 9:49 PM, fib <[email protected]> wrote: > > Hi all > I know this is a bit of a rookie question but I am using 1 header file > across the site and have different date pickers which need different > options on different pages > > I have 2 working one's currently > > BUT > there is only ever the first one in the includes file working > therefore one page works the other only works if I add both > datepickers to the html > > I am aware this has got to be really simple but my brain has shut down > > some code for this bit is below > in this case the marketing page works > > when I swap the order the util page works > > thank you in advance for your time > embarrassed > fib > > //////////////////////////////////////////////////////////////////// > > //marketing > $("#datepk-back-mkt-em").datepicker({ > ChangeMonth: true, > numberOfMonths: 3, > dateFormat: 'yymmdd', > defaultDate: +31, > duration: 'slow', > firstDay: 1 > }); > //getter > var altFormat = $('#datepk-back-mkt-em').datepicker('option', > 'altFormat'); > //setter > $('#datepk-back-mkt-em').datepicker('option', 'altFormat', 'DD, d > MM yy'); > //getter > var altField = $('#datepk-back-mkt-em').datepicker('option', > 'altField'); > //setter > $('#datepk-back-mkt-em').datepicker('option', 'altField', > '#displayreal'); > //end marketing > > // util ss > $("#datepk-back-ss-util").datepicker({ > ChangeMonth: true, > numberOfMonths: 3, > dateFormat: 'yymmdd', > defaultDate: -31, > duration: 'slow', > firstDay: 1 > }); > //getter > var altFormat = $('#datepk-back-ss-util').datepicker('option', > 'altFormat'); > //setter > $('#datepk-back-ss-util').datepicker('option', 'altFormat', 'DD, d > MM yy'); > //getter > var altField = $('#datepk-back-ss-util').datepicker('option', > 'altField'); > //setter > $('#datepk-back-ss-util').datepicker('option', 'altField', > '#displayrealpost'); > //end sairas util ss > /////////////////////////////////////////////////////////////// > > > > -- Ca-Phun Ung + http://yelotofu.com + hongkong, zce, jquery, jqueryui, php, css, html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
