Revision #4 was created by Antonio Ramirez on Nov 3, 2014, 11:17:27 AM.
Changed API
Content
[...]
```php
<?php
$js = <<<JS
// get the form id and set the event
$('form#{$model->formName()}').on('beforeSubmit', function(e, \$form) {) {
var \$form = $(this);
// do whatever here, see the parameter \$form?
// is a jQuery Element to your form
}).on('submit', function(e){
e.preventDefault();
});