I am a beginner I downloaded full calendar 5.10.1 from fullcalendar.io. Here’s what I want to do. If I click on any date, it will go to my registration.html.
Here is calendar script:
document.addEventListener(‘DOMContentLoaded’, function() {
var calendarEl = document.getElementById(‘calendar’);
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: ‘dayGridMonth’
});
calendar.render();
});
Here is registration form:
<fieldset>
<legend>For person</legend>
<label>
Name
<input type="text" name="name" required>
</label>
<div class="two-cols">
<label>
Email address
<input type="email" name="email" required>
</label>
<label>
Phone number
<input type="tel" name="phone">
</label>
</div>
</fieldset>
<fieldset>
<legend>Appointment request</legend>
<div class="two-cols">
<label>
Datum
<input type="date" name="Appointment request" required>
</label>
<div class="inline">
<label>
<input type="hidden" name="Morning desired" value="no">
<input type="checkbox" name="Morning desired" value="yes">
Morning
</label>
<label>
<input type="hidden" name="Afternoon desired" value="no">
<input type="checkbox" name="Afternoon desired" value="yes">
Afternoon
</label>
</div>
</div>
<p>Confirmation requested by</p>
<div class="inline">
<label>
<input type="radio" name="Confirmation requested by" value="email" checked>
Email
</label>
<label>
<input type="radio" name="Confirmation requested by" value="phone">
Phone call
</label>
</div>
</fieldset>
<div class="btns">
<input type="text" name="_gotcha" value="" style="display:none;">
<input type="submit" value="Submit request">
</div>
</form>