About the search input in datatable.
About the search input in datatable.
I would like to ask how could i be abl to put or integrate a pop up calendar in search input so that user no onger need to input dates manually to filter the data within the table.
Hoping for immediate response and God bless.
Thanks,
Hoping for immediate response and God bless.
Thanks,
This discussion has been closed.
Replies
in our project we use the jQuery Timepicker Addon (http://trentrichardson.com). I think you should start with this.
Greetings
A little addition to my previous post: The linked plugin extends the standard datepicker of jQueryUI (http://jqueryui.com/demos/datepicker/).
So, basically what you have to do is give each input field a unique html id. E.g. I use in PHP
[code]echo '';[/code]
So the ID (and name) is e.g. 'search0', 'search1' and so forth.
Now, after the DOM is loaded you simple have to call in JavaScript (assuming search0 is the field where you want to have you date stuff):
[code]$('#search0').datepicker();[/code]
Please look up the datepicker documentation for all the parameters you can give the call.
Hope this helps!
Cheers
Regards