Change "Cancel" button behavior
The Cancel button actually has element selector of
a#cData
(using 'bootstrap' theme). a
is not required but for clarity.So you can attached event like this
$('a#cData').on('click', function(e){
e.preventDefault()
alert('hello') // do sth else
})
By the way, the submit button has the selector
a#sData
.