Horoscope in JavaScript

Now we are implementing a horoscope site. This site will show horoscopes for today. Let the user, upon entering the site, see an input into which they need to enter their date of birth. Let our site by pressing Enter show the user a horoscope for the current day for his zodiac sign.

Let us also have radio buttons: today, tomorrow, the day after tomorrow. Let's make it so that, depending on the choice, the horoscope for the corresponding day is displayed. Obviously, today will be selected by default, but the user can change their choice if they wish.

Consider how you will store horoscopes in accordance with the task.

Implement display of a horoscope for the current day.

And now implement the work of radio buttons that allow you to select the day for which you want to show the horoscope.

enru