项目作者: marcuswiseman

项目描述 :
Turn all forms into ajax requests.
高级语言: JavaScript
项目地址: git://github.com/marcuswiseman/formify.js.git
创建时间: 2018-10-03T15:11:39Z
项目社区:https://github.com/marcuswiseman/formify.js

开源协议:

下载


``` Bind two inputs of two forms (or more) together using `data-bind`, so when changes are made to input `id` in the first form, it updates it in the second where `data-bind="filter.id"` matches. For server-side response (PHP for example); ``` return json_encode([ 'callback' => 'prompt', 'arguments' => ['msg' => 'Note must be specified.'] ]); ``` then specify function "do_prompt" inside the script tag of your body: ``` function do_prompt(arg) { alert(arg.msg); } ``` Once the ajax request is complete, do_prompt will be executed. You can apply a confirm pormpt on a form using `
` this will prompt the user to confirm if they wish to continue with the form submission.

formify.js

Turn all forms into ajax requests. (jQuery Plugin ~ v2 - v3.3.1+)
```