Change a field from drop-down to calendar - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Change a field from drop-down to calendar (/showthread.php?tid=66130) |
Change a field from drop-down to calendar - Gagan - 09-10-2016 Hello guys, I'm having a form in which there are two field Date of Birth and Date of Retirement (which are drop-down field) :- (I'm having an option to fix the date of birth and date of retirement field {Start date and end date} from admin panel) Date of Birth: PHP Code: <div class="row-form"> Date of Retirement PHP Code: <div class="row-form"> I want to change these fields to calendar. Please help me guys how to change this. Attached herewith two pics showing position explained above. RE: Change a field from drop-down to calendar - Wouter60 - 09-10-2016 I think you should look for a "Datepicker" javascript. There's one in jQuery UI's library. Check this: https://jqueryui.com/datepicker/ A tip for posting blocks of code: use the Code or PHP-code buttons on the toolbar of this forum's text-editor. RE: Change a field from drop-down to calendar - Gagan - 09-10-2016 (09-10-2016, 08:39 AM)Wouter60 Wrote: I think you should look for a "Datepicker" javascript. There's one in jQuery UI's library. Thanks buddy, edited the form. If we use date picker option will it use the start and end dates as defined in the admin panel RE: Change a field from drop-down to calendar - Wouter60 - 09-10-2016 It will. The jQuery datepicker accepts a minDate() and a maxDate() setting. |