I have several inputs which trigger JQuery UI datepickers e.g.
<input id="one" type="text"/>
<input id="two" type="text"/>
<input id="three" type="text"/>
<input id="four" type="text"/>
For each jquery UI datepicker created, I want to assign a custom class based on the ID of the input which triggered it i.e. .one, .two, .three
So if the datepicker is triggered by the first input the resulting HTML will look like:
<div class="one ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" id="ui-datepicker-div">
Note the first class one
Is this possible? The 'create' method of the datepicker does not seem to work for me...