jQuery-Timepicker-Addon icon indicating copy to clipboard operation
jQuery-Timepicker-Addon copied to clipboard

altField relative to the DateField

Open arbyter1 opened this issue 8 years ago • 0 comments
trafficstars

I am trying to extend all Inputs having type=data like so: $(document).ready(function (){$('[type=date]').datetimepicker(); This works great. having multiple date - and timefileds in a list on the same page i can not profit from the very innovative option "altField". I patched jquery-ui-timepicker-addon.js so i can give a callback function instead of an ID for the altField Example: $(document).ready(function (){$('[type=date]').datetimepicker({altField:timefield}).val(); }) function timefield(p){ return $(p.$input).closest('td').next('td').find('input')};

arbyter1 avatar Nov 02 '17 10:11 arbyter1