Skip to content

Dynamic validation #98

Open
Open
@pjsaran

Description

@pjsaran

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions