Don't forget to utilize jQuery for your next attempt:
$('#submit').click(function() {
//Additional code here
//Lastly, include the following to reset specific elements:
$("#name").val("");
$("#place").val("");
$("#date").val("");
$("input [name='Favorite']").prop("checked", false);
});
UPDATE:
To ensure your checkbox functions properly, assign it an id
, like so:
<input type="checkbox" name="Favorite" id="Favorite" value="Favorite">Favorite </input>
Then target the checkbox using:
$('#submit').click(function() {
//Additional code here
//Conclude your function by resetting the checkbox (after assigning it an `id`):
$("#name").val("");
$("#place").val("");
$("#date").val("");
$("#Favorite").prop("checked", false);
});