ksingh
1/19/2019 - 9:16 AM

Add jQuery in yii2 view

Add jQuery in yii2 view

$this->registerJs('$(document).ready(function(){
    $("div").click(function(){
        $(this).hide()
    });
});');