title: Floating of labels not working in yii2
body: <p>i have created a form in yii2 basic and used material design to enable floating labels but its labels are not floating above when i click the input field. Here is my code for form.
       </p>
  
  <pre><code>    &lt;?php
      $form = ActiveForm::begin([
                  'action' =&gt; ['index'],
                  'method' =&gt; 'get',
      ]);
      ?&gt;
  
  
      &lt;div class="panel-body container-fluid"&gt;
  
          &lt;div class="row"&gt;
              &lt;div class="col-md-12"&gt;
                  &lt;div class="col-xs-6 col-lg-6"&gt;
  
                      &lt;div class="form-group form-material floating" data-plugin="formMaterial"&gt;
                          &lt;?= $form-&gt;field($model, 'corporation_name',[  'labelOptions' =&gt; [ 'class' =&gt; 'floating-label' ]])-&gt;textInput(['maxlength' =&gt; true, 'class' =&gt; 'form-control'])-&gt;label('Corporation Name') ?&gt;    
                      &lt;/div&gt;
  
                      &lt;div class="form-group form-material floating" data-plugin="formMaterial"&gt;
                          &lt;?= $form-&gt;field($model, 'user_first_name',[  'labelOptions' =&gt; [ 'class' =&gt; 'floating-label' ]])-&gt;textinput(['class' =&gt; 'form-control'])-&gt;label('Corporation Admin'); ?&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="col-xs-6 col-lg-6"&gt;
                      &lt;div class="form-group form-material floating" data-plugin="formMaterial"&gt;
                          &lt;div class="example"&gt; &lt;b role="presentation"&gt;&lt;/b&gt;
                              &lt;?= $form-&gt;field($model, 'corporation_status')-&gt;dropDownList(Yii::$app-&gt;appstatues-&gt;status, ['prompt' =&gt; 'Status'])-&gt;label(false); ?&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="col-md-12"&gt;
                  &lt;div class="form-group form-material floating m-t-27" data-plugin="formMaterial"&gt;
                      &lt;?= Html::submitButton('Search', ['class' =&gt; 'btn-primary btn waves-effect waves-light   waves-effect']) ?&gt;
                      &lt;?= Html::resetButton('Reset', ['class' =&gt; 'btn-primary btn waves-effect waves-light   waves-effect', 'onclick' =&gt; 'location.href = "/admin/corporations";']) ?&gt;
  
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
      &lt;?php ActiveForm::end(); ?&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>can anybody tell what am i doing wrong? </p>