jQuery UI Datepicker, How can I make the text box editable by keyboard using the 'oo' dateformat? -
i using date picker leading 0 day of year format. users want able enter day of year ('012', '034', '356') using keyboard. using datepicker dateformat code, 'oo', text not able entered keyboard... can delete using delete , backspace keys.
here code:
$( '#datefieldid' ).datepicker({ dateformat: 'oo' });
it formats date field expected when choosing date animated box not allow text entry keyboard. appreciated.
i found datepicker default constrain input allowed implemented datepicker format. in case of question, allowable character input 'oo'. (those 2 lowercase letter 'o'.)
see: http://api.jqueryui.com/datepicker/#option-constraininput
while helped system identify particular julian style date format constrained input allowed, not good.
by changing value of constraininput option 'false' can add our numbers , put validation on if needed.
here code option set allow numbers:
$( '#datefieldid' ).datepicker({ constraininput: false, dateformat: 'oo' });
Comments
Post a Comment