Answer the question
In order to leave comments, you need to log in
How to get submit from ajaxSubmitButton?
Есть форма(yii1)
$form = $this->beginWidget('CActiveForm', array(
'action' => Yii::app()->createUrl($this->route),
'method' => 'get',
'id' => 'MyForm'
));
?>
<div class="col-md-3">
<div class="row">
<div class="col-md-6">
<?php echo CHtml::submitButton('Find'); ?>
</div>
</div>
</div>
</div>
<?php $this->endWidget(); ?>
И файл js
$('#myForm').submit(function(){
alert(1);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question