<select name="status" id='status'>
<option value="Submitted">Submitted</option>
<option value="Canceled">Canceled</option>
</select>
<input type="checkbox" id="app_box" name="application_complete" value="checked"> App Complete
<script type="text/javascript">
$(function() {
$('form.editable').submit(function(){
if ($('#status').val()=='Canceled') {
if (!confirm('This information will be discarded! )) {
return false;
}
}
});
});
</script>
So, I have the above script which works fine. I have to add one more confirmation. When the agent clicks on the submit button , I want to check if the application check box is checked or not. If it is not checked then display another confirmation box saying, you have to check the box. How can this be done in jquery.