To be more specific with my question, I have a date input code on my .html page and a button next to it that says "Continue".
I am trying to make it to where after selecting any date by a person, and after clicking "Continue" button, it shows different results.
If you were to select any date and click "Continue", you will be redirected to information about the selected date. (Kind of like how History.com has "On this day in history") However, for the project I am working on, some of the data used on one date selection, may be used again in another selection.
Example: Person selects "December 28, 1922" and clicks "Continue". Page redirects to information that happened on that day. (In this example, information about Stan Lee will show because he is born on this day. Information about other stuff may also appear.) Person selects "November 12, 2018" and clicks "Continue". Page redirects to information that happened on that day. (Again, information about Stan Lee will show because he passed away on this day. Information about other stuff may also appear.)
Some information I want shown depending on a certain date selected, may appear hundreds of times.
I understand that some of this may seem vague, but I'm working on a special project that I don't want someone else stealing this idea.
Some of the code that I have could also give away my idea.
<input type="date" id="myDate" value="2014-02-09">
<button onclick="myFunction()">Continue</button>
<p id="demo"></p>
Aucun commentaire:
Enregistrer un commentaire