I really need your help. I'm new at it, so i dont get this thing. I have old project on Yii1, there is an ajax submit button. I thought that i can use this button in Yii2 but I've rear that Yii2 doesnt use CHtml. So here's my question, what can i do to 'remake' my button. I wanted to use it in new project (Yii2).
This part of code is for example:
<?php
echo CHtml::ajaxSubmitButton(Yii::t('importcsvModule.importcsv', 'Import'), '', array('success' => 'function(response){
$("#importCsvThirdStepResult").html(response);
$("html, body").animate({scrollTop:$("#content").position().top}, "slow")
}'), array("class" => "formbut"));
?>
I really need your help, I would be very grateful if you'll answer me.