uxsolutions / bootstrap-datepicker

A datepicker for twitter bootstrap (@twbs)
Apache License 2.0
12.67k stars 6.06k forks source link

Easily initialize embedded picker for inputs #1265

Open econic opened 9 years ago

econic commented 9 years ago

Rather than initializing an embedded Datepicker on a div, there should be an option to initialize it directly on an (maybe hidden) input. So with this markup <input type="hidden" class="datepicker" /> you can easily initialize an embedded input with something like $('.datepicker[type="hidden"]').datepicker({embedded: true})

This is especially useful because you don't have to

econic commented 9 years ago

@SeanLF @acrobat

SeanLF commented 9 years ago

+1