Answer the question
In order to leave comments, you need to log in
Is it possible to replace submitbutton with a custom button?
Hello! There is a button in yii2 form with code
<?= Html::submitButton('<span class="btxt">Оставить заявку</span>', ['class' => 'mbutton', 'name' => 'contact-button']) ?>
<a href="#" class="mbutton"><span class="btxt">Оставить заявку</span></a>
Answer the question
In order to leave comments, you need to log in
Good morning.
Add an id to the button and write your rules in css.
Or disable bootstrap styles altogether (if you have set your own design) and then there will be no problems.
'assetManager' => [
'bundles' => [
/* 'yii\web\JqueryAsset' => [
'js' => []
],
'yii\bootstrap\BootstrapAsset' => [
'css' => []
],
'yii\bootstrap\BootstrapPluginsAsset' => [
'js' => []
]*/
],
'linkAssets' => true,
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question