![]() |
datetime picker issue
Hi All,
I am using below linked jquery plugin in one of my project and now I have small issue. In a form when i want to use these plugin it need multiple function for each entry so can I do something like a fixed used for multiple datetime picker feilds with out duplicating it. Code:
http://trentrichardson.com/examples/timepicker/PHP Code:
|
Code:
$("#firstelement,#secondelement,#thirdelement").datetimepicker()Code:
$(".myclass").datetimepicker() |
Quote:
I bit interested to understand this. On the above example if I change code as below will that be okay? Code:
$(".slider_example_2").datetimepicker({ |
then it will apply to all inputs with a class of "slider_example_2", ( not an id)
i think you need to explain what you want in more detail |
Quote:
I am using these plugin for timedate picker. I have a form which need multiple datetime fields...but when I have used above function for only fist field is was able to get the datetime. my requirement is when ever I use the "slider_example_2" in the form as Id that field should enable datetime picker. I am noob to javascript so I am not able to work on these small fuction that has choke all my functionality. Appreciate your help. Thanks, Nani |
Quote:
declaring as class has solved my problem. Thanks for your support. Regards, Nani |
Excellent! You should take a look at this page sometime, I dont have them all memorized so I use this page often
http://api.jquery.com/category/selectors/ |
| All times are GMT +1. The time now is 03:35 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.