ericjgagnon / wickedpicker

A simple jQuery timepicker
http://ericjgagnon.github.io/wickedpicker/
MIT License
93 stars 78 forks source link

Multiple wickedpicker with different names, always same string displyed #48

Open psankovic opened 7 years ago

psankovic commented 7 years ago

In case you have multiple pickers with different titles, for all instances always first title is shown.

<div class="time_day">
     <input type="text" id="day_start" name="day_start" class="day_start">
     <input type="text" id="day_end" name="day_end" class="day_end">
</div>

<script type="text/javascript">
     $('.day_start').wickedpicker(  {title: "String 1", twentyFour: true, showSeconds: false});
     $('.day_end').wickedpicker(    {title: "String 2",  twentyFour: true, showSeconds: false});
</script>

For both pop up window title will be "String 1".

ghost commented 5 years ago

It would be really helpful to specify separate titles to inform the end user about what time is to be set when distinguishing between start and end times.