yii2.0自带jquery,如果 想用原生jquery ajax,submit按钮放在 <?php ActiveForm::end(); ?> 之外,如:
<?php $form = ActiveForm::begin(); ?>
......
<?php ActiveForm::end(); ?>
<button type="button" οnclick="submit()"">确认</button>
yii2.0自带jquery,如果 想用原生jquery ajax,submit按钮放在 <?php ActiveForm::end(); ?> 之外,如:
<?php $form = ActiveForm::begin(); ?>
......
<?php ActiveForm::end(); ?>
<button type="button" οnclick="submit()"">确认</button>