The title is self-explanatory. I use client-side validation in rails and it works wonderfully. However, I do not want the submit button on my form to be enabled until all the checks have passed.
Any help would be appreciated.
There are callback functions:
ClientSideValidations.callbacks.form.pass(form, eventData) ClientSideValidations.callbacks.form.fail(form, eventData)
You can disable the submit button by default and fail . and enable it on pass .
fail
pass
In case someone later comes looking for an answer to this question, Alexey answers quite correctly. Callbacks are currently available for items that you could use.
https://github.com/DavyJonesLocker/client_side_validations#callbacks
Source: https://habr.com/ru/post/1490998/More articles:iTextSharp - Add PDF Image from Datatable - imagelpsolveAPI in RStudio - rhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1490995/what-happens-to-executing-bytecode-when-pausing-an-android-activity&usg=ALkJrhjHKu0H6TExHSnGIMX08NhvdmTnKgIE 10 Apache / Linux HTTP / 1.0 412 Prerequisite Failed to load video.js mp4 video - internet-explorerHow does the compiler compile the compiler? - compiler-constructionhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1490999/ssrs-hiding-the-textbox-in-a-table-cell-causes-the-borders-to-disappear&usg=ALkJrhgGo5qvqYyYCZhNvYNi_rVYcyI76AHow to convert Hex to RGB? (Perl) - perlRenaming an image while loading PHP Mysql - phpjava.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult - javaDoes SQLite really not preserve default foreign key data integrity? - sqliteAll Articles