Sinisterly
[Request] Calculator assistance? - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Coding (https://sinister.ly/Forum-Coding--71)
+--- Thread: [Request] Calculator assistance? (/Thread-Request-Calculator-assistance)



[Request] Calculator assistance? - mudrig - 05-30-2014

I need to make a input box that when a calendar date is entered and ran will add 110days to the date and output the date 110days later. Any help would.be great as I am new to the forums. Dont know much about working with dates on a calendar so any help will do it can be in html or js dont want php or any other language.


RE: [Request] Calculator assistance? - 3SidedSquare - 05-30-2014

You'll need JavaScript for this, (html is not a programming language).
You just need to be a little creative with html input boxes.
I think this is what you're looking for: Input tags have the following attributes
type="date" (used for entering a date)
Button tags can have the following attributes:
onclick="javascriptfunction()"
In javascript, you can get the value of a input element using
tag.val()

Good luck!


RE: [Request] Calculator assistance? - mudrig - 05-30-2014

Thanks I will.give it a shot based on my.knowledge


RE: [Request] Calculator assistance? - mudrig - 06-01-2014

I know how to use html input in java just suck at dates in java. I need to be able to have my users to enter a date hit the button and it show the date 110days later.