So I read this post but it is not helping at all, I tried to do the same and is not working.
I have this button:
<button id="btnCancel" type="button" class="cancel" name="btnCancel" value="Cancel" onclick="onCancel()">Cancel</button>
Which cleans my form, and causes validation (which I want to remove)
What am I doing wrong?
EDIT: OnCancel function:
function onCancel()
{
$('#ddlConfigTypeName').val("")
$('#ddlThreshold').val("")
$('#ddlValueTypeName').val("")
$('#txtbLocation').val("")
$('#txtbLimit').val("")
$('#QueueMonitorConfigurationsID').val(-1)
$("#valSummary").empty();
}