title: Yii2 search form without reload page
body: <p>I have a page with tab layout. I build a search form for the gridview. But everytime I used the search, it reload the page and take me back to the first tab. How can I solve that problem?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php $form = ActiveForm::begin([
       'options' =&gt; ['data-pjax' =&gt; true ],
      'action' =&gt; ['index'],
      'method' =&gt; 'get',
      ]); ?&gt;
  
      Approve month: &lt;input type="string" name="approvemonth"&gt;&lt;br&gt;&lt;br&gt;
      Team: &lt;input type="string" name="team"&gt;&lt;br&gt;&lt;br&gt;
      Difficulty: &lt;input type="string" name="difficulty"&gt;
  
      &lt;div class="form-group"&gt;
      &lt;?= Html::submitButton('Search', ['class' =&gt; 'btn btn-primary']) ?&gt;
      &lt;?= Html::resetButton('Reset', ['class' =&gt; 'btn btn-default']) ?&gt;
      &lt;/div&gt;
  
  &lt;?php ActiveForm::end(); ?&gt;
  
  
      &lt;?php echo GridView::widget([
              'dataProvider' =&gt; $dataProvider15,
              'filterModel' =&gt; true,  
              'pjax'=&gt;true,
              'panel' =&gt; [
                  'type' =&gt; GridView::TYPE_PRIMARY,
                  'heading' =&gt; '&lt;h3 class="panel-title"&gt;&lt;i class="glyphicon glyphicon-user"&gt;&lt;/i&gt;Avg total time by modeler without handover&lt;/h3&gt;',
              ],
              'columns' =&gt; [
                  [
                  'attribute'=&gt;'approvemonth', 
                  'filter' =&gt; Html::input('string', 'approvemonth'),
                  [
                      'attribute' =&gt;'team',
                      'filter' =&gt; Html::input('string', 'team'),
                      // 'group' =&gt; true,
                  ],
                  [
                      'attribute' =&gt;'difficulty',
                      'filter' =&gt; Html::input('string', 'difficulty'),
                      // 'group' =&gt; true,
                  ],
                  [
                      'attribute' =&gt;'Total',
                      'format'=&gt;['decimal',2]
                  ],
                  [
                      'attribute' =&gt;'Avg',
                      'format'=&gt;['decimal',2]
                  ],
              ]
          ]); 
          ?&gt; 
  </code></pre>
  
  <p>I tried pjax but it did not work. It didn't load anything.</p>
  
  <p>Please help me with this.</p>
  
  <p>Thank you.</p>