Answer the question
In order to leave comments, you need to log in
Yii2 jQuery not executing, how to fix?
In Layout I connect my script
$this->registerJsFile('@web/js/file.js', ['depends' => [\yii\web\JqueryAsset::className()]]);
$('#header-holder').click(function(){
alert("Okay");
});
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