cool hit counter Form validation good tool: jquery-validation_Intefrankly

Form validation good tool: jquery-validation


Recently in the project, instead of using Bootstrap, I used a CSS framework [Bulma][2] based on [Flexbox][1]. Bulma is simply a CSS framework and does not contain Javascript, so we had to turn to external tools and found jquery-validation.

jquery-validation Github:

jquery-validation/jquery-validation

jquery-validation for Rails:

meowsus/jquery-validation-rails

jquery-validation Demo:

https://jqueryvalidation.org/files/demo/

erect

Add the following to the Gemfile.

Operation.

Add the following to: app/assets/javascripts/application.js

use

Create a new file _validate.js in the folder where the form view page is located

And then add the following code to the bottom of the view page

That'll do it.

Registered User Form

Customized Messages

Use of methods

Adding custom rules

Use of methods

app/views/users/_validate.js

Reference.

Jquery Validation in Rails

Validation form in Ruby on Rails with jquery.validate()

Title image: bing.com

- End -


Recommended>>
1、Survey shows are you a competent Python developer
2、To see notifications hitched a Telegram channel like this
3、The 7 worst types of people to be programmers because one of those things gives you an endless supply of bugs to change
4、Deep Brain Chain announces in Germany that the main Deep Brain Chain AI training network will go live in early August
5、EXCLUSIVE Passwords are obsolete keep up with the blockchain

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号