PHPackages                             demogorgorn/yii2-ajax-submit-button - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. demogorgorn/yii2-ajax-submit-button

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

demogorgorn/yii2-ajax-submit-button
===================================

AjaxSubmitButton renders an ajax button which is very similar to ajaxSubmitButton from Yii1.

1.2.1(8y ago)29132.8k↓19.7%17[1 PRs](https://github.com/demogorgorn/yii2-ajax-submit-button/pulls)1MITPHP

Since Jan 28Pushed 4y ago4 watchersCompare

[ Source](https://github.com/demogorgorn/yii2-ajax-submit-button)[ Packagist](https://packagist.org/packages/demogorgorn/yii2-ajax-submit-button)[ Docs](https://github.com/demogorgorn/yii2-ajax-submit-button)[ RSS](/packages/demogorgorn-yii2-ajax-submit-button/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

AjaxSubmitButton for Yii 2
==========================

[](#ajaxsubmitbutton-for-yii-2)

=====================================

[![Latest Stable Version](https://camo.githubusercontent.com/6d468c95c47dfd29521b3b0d5fb5f6eeb21d1fd11449baf8e9bca81ebeee3598/68747470733a2f2f706f7365722e707567782e6f72672f64656d6f676f72676f726e2f796969322d616a61782d7375626d69742d627574746f6e2f762f737461626c65)](https://packagist.org/packages/demogorgorn/yii2-ajax-submit-button)[![Total Downloads](https://camo.githubusercontent.com/62ceea5d2aa952dca7450a2ca214f48d4b2652ed7dbaede381cbf4625f5a64b5/68747470733a2f2f706f7365722e707567782e6f72672f64656d6f676f72676f726e2f796969322d616a61782d7375626d69742d627574746f6e2f646f776e6c6f616473)](https://packagist.org/packages/demogorgorn/yii2-ajax-submit-button)[![License](https://camo.githubusercontent.com/77f829c0310f3975e38cec1835ab55ff67b6d926a984f215a062cdf8e36d7d12/68747470733a2f2f706f7365722e707567782e6f72672f64656d6f676f72676f726e2f796969322d616a61782d7375626d69742d627574746f6e2f6c6963656e7365)](https://packagist.org/packages/demogorgorn/yii2-ajax-submit-button)[![Monthly Downloads](https://camo.githubusercontent.com/32538998092cdd714eb02fbb52caa8ebc615a87c3419eef3f5a4812b26d9ceb1/68747470733a2f2f706f7365722e707567782e6f72672f64656d6f676f72676f726e2f796969322d616a61782d7375626d69742d627574746f6e2f642f6d6f6e74686c79)](https://packagist.org/packages/demogorgorn/yii2-ajax-submit-button)[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](http://www.yiiframework.com/)

This is the powerful AjaxSubmitButton widget that renders an ajax button which is very similar to ajaxSubmitButton from Yii1 for Yii 2, but has many useful functions.

### Basic Example

[](#basic-example)

Example of usage of the widget with a custom widget (in this case Select2 widget).

The view:

```
use demogorgorn\ajax\AjaxSubmitButton;
