Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have two text boxes for giving time as input in a web page. i need to calculate the hours between time given in two text boxes. please provide the timepicker using javascript.



What I have tried:

i have used code as below but its not working.

$(function () {
$('#txttimein').timepicker({
minuteStep: 15
});
Posted
Updated 18-Jan-18 1:50am
Comments
F-ES Sitecore 18-Jan-18 7:21am    
This is not a code-on-demand website where we fo your work for you. Also "doesn't work" doesn't give anything enough information to help you, would you phone a mechanic and say "My car doesn't work, how do I fix it?" The code you posted will be using an add-in, but we don't know which one....find out and consult the documentation for it to see how to get it working. If you can't follow the documentation for the plug-in why will you be able to follow any instructions we give you?
Karthik_Mahalingam 18-Jan-18 7:25am    
what is the issue?
Member 12503739 18-Jan-18 7:36am    
i have used the above script to get the time picker in the text box but i couldnt get that in my application. could you please help to get the timepicker in the text box used in my application.
Karthik_Mahalingam 18-Jan-18 9:11am    
did you refer the documentation in jQuery Timepicker[^]
Member 12503739 18-Jan-18 10:14am    
Yes Karthik, Thanks for your information about jquery documentation...

1 solution

It doesn't quite work like that.
We do not do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.

But be aware: you get what you pay for. Pay peanuts, get monkeys.

The idea of "development" is as the word suggests: "The systematic use of scientific and technical knowledge to meet specific objectives or requirements." BusinessDictionary.com[^]
That's not the same thing as "have a quick google and give up if I can't find exactly the right code".
So either pay someone to do it, or learn how to write it yourself. We aren't here to do it for you.
 
Share this answer
 
Comments
Member 12503739 18-Jan-18 8:43am    
i didnot ask anyone here to work for me. i asked suggesstion for my code which didnot work for me in my application. More over of you dont have the perfect monkey, Keep your other monkeys with you OriginalGriff.
CHill60 18-Jan-18 11:10am    
Actually, no - you asked for the code to be "provided". The phrase "Pay peanuts, get monkeys" means "you only get what you pay for" by the way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900