kl83 / yii2-jquery-form-asset
Yii2 jquery-form asset
v1.1.1
2017-11-10 10:43 UTC
Requires
- php: >=5.4.0
- bower-asset/jquery-form: ^4.0.0
- yiisoft/yii2: ^2.0.0
This package is auto-updated.
Last update: 2024-11-09 15:02:32 UTC
README
The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX. The main methods, ajaxForm and ajaxSubmit, gather information from the form element to determine how to manage the submit process. Both of these methods support numerous options which allows you to have full control over how the data is submitted. Submitting a form with AJAX doesn't get any easier than this!
Project home page http://malsup.com/jquery/form/.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require kl83/yii2-jquery-form-asset ~1.1.0
or add
"kl83/yii2-jquery-form-asset": "~1.1.0"
to the require section of your composer.json file.
Usage
Adding an asset as a dependence on another asset.
class SomeAsset extends \yii\web\AssetBundle { ... public $depends = [ 'kl83\assets\JQueryFormAsset', ]; ... }
Adding an asset within a view.
kl83\assets\JQueryFormAsset::register($this);
License
MIT License