Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent form to submit (disable submit button) #3

Open
talenta-eg opened this issue Feb 18, 2023 · 0 comments
Open

prevent form to submit (disable submit button) #3

talenta-eg opened this issue Feb 18, 2023 · 0 comments

Comments

@talenta-eg
Copy link

talenta-eg commented Feb 18, 2023

Firstly it's good job for this awesome package

actually i did some changes to change border color and label color as below

            if(json.inputIndex.length > 0 ){
                $(element).css('border-color','red');
                $(element).parent().prev().css('color','red');
            }else{
                $(element).css('border-color','green');
                $(element).parent().prev().css('color','green');
            }

It's working fine according to input validation , but i need to prevent form to submit if form is invalid
Any Suggestion ?

@talenta-eg talenta-eg changed the title Disable submit button prevent form to submit (disable submit button) Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant