Can some one give me an example on how to use jquery in yii2. I want to have two buttons in one form (a search button and a submit button) and each one of these buttons triggers a different action on click. can you give me a simple example on how to use jquery when clicking on a button to excute a specific controller’s action.
I dont know where to declare the script, is it in the view and how to make the relation with the controller actions.