I have the multiply forms (automatically generated) on the page. I am asking the user to confirm record deletion. If user click on no, modal dialog is closed and nothing happen, however if he click on yes button, nothing happen again. Anyone can help?
Here is the code:
<input type="submit" value="Click me" class="button" />
<div id="modal">
<div id="heading">
Record will be deleted! Please Confirm.
</div>
<div id="content">
<p>Record will be deleted! This operation can't be undone. <br />Are you sure?</p>
<input type="button" onclick="return true;" class="button green close" value="Yes"></button>
<input type="button" onclick="return false;" class="button red close" value="No"></button>
</div>
$('.oneUser').on('submit',function(e){
$('#modal').reveal({
animation: 'fade',
animationspeed: 600,
closeonbackgroundclick: true,
dismissmodalclass: 'close'
});
return false;
});