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
///////////////////////////////////////////////////////////////
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---