DDim1000,
# -- это селектор id
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(function() {
$('#formSubmit').click(function() {
if ($('#formWheelchair').prop('checked')) {
alert('Выбор сделан!');
} else {
alert('Ни чего не выбрано');
}
});
});
/*
$(function() {
$('form').on('submit', function() {
var checked = $('#formWheelchair').prop('checked')
if (checked) {
alert('Выбор сделан!');
} else {
alert('Ни чего не выбрано');
}
return checked
});
});
*/
</script>
</head>
<body>
<form method="post">
Вы выбираете? <br />
<input type="checkbox" name="formWheelchair" value="Yes" id="formWheelchair"/><label for="formWheelchair">Да, я выбираю!</label><br/>
<input type="submit" id="formSubmit" name="formSubmit" value="Готово!" />
</form>
</body>
</html>