I want to implement the following:
- There is a
label.calendar-button, when clicked, I want to receive in itsdivinputwith the possibility of specifying a date (possibly with atimepicker). - After selecting the date, you must return the
.calendar-buttonwith the specified date value. Maybe?
Now I have:
<label class="calendar-button"> <div id="content"> <input type="radio" name="date" id="16092017">Выбрать день<br> <span>не выбрано</span> </div> </label> After clicking you need to get:
<label class="calendar-button"> <div id="content"> <input type="text" name="date" value="" placeholder="Укажите дату"> </div> </label> And, accordingly, after specifying the date, get back
<label class="calendar-button"> <div id="content"> <input type="radio" name="date" id="*Выбранная дата*">Выбор даты<br> <span>*Выбранная дата*</span> </div> </label> Specifically, javascript is interested in, how and what should be hung up?