jqBootstrapValidation icon indicating copy to clipboard operation
jqBootstrapValidation copied to clipboard

Dynamic validation

Open pjsaran opened this issue 12 years ago • 0 comments

Suppose I have a button (type is not Submit) and an event attached to a button like below

$("#idProceedBtn").on("click", function (e) {.....}

I will need to perform the action in the event only after validation passes. I can achieve this by else condition of the below statement

if($("input,select,textarea").not("[type=submit]").jqBootstrapValidation("hasErrors")){.....}else{.....}

Doing this is working, but it is not highlighting which fields are failing validation and why. I need something like what happens when a button with type submit clicked (Highlighting which fields are failing validation and why).

pjsaran avatar Jul 03 '13 19:07 pjsaran