vendredi 27 janvier 2023

When I try to collapse my element it automatically opens again and again

enter image description here

When I try to close my element it automatically opens again and again

<div class="portlet box purple ">
  <div class="portlet-title">
    <div class="caption">
      <i class="fa fa-gift"></i> Advance Search </div>
    <div class="tools">
      <a href="" class="<?= isset($_GET['advanceSearch']) ? " expand " : "collapse "  ?>"><i class="icon-collapse"></i></a>
    </div>
  </div>
  <div class="portlet-body form">
    {!! Form::open(['method'=>'GET','url'=>route('users.index'),'class'=>'form-horizontal','role'=>'search']) !!}
    <div class="form-body">
      <div class="row">
        <div class="col-md-4">
          <div class="form-group">
            <div class="col-md-12">
              <label>First Name<span class="required"></span></label> {!! Form::text('first_name', null, array('placeholder' => 'First Name','class' => 'form-control')) !!}
            </div>
          </div>
        </div>
        <div class="col-md-4">
          <div class="form-group">
            <div class="col-md-12">
              <label>Email<span class="required"></span></label> {!! Form::text('email', \Request::get('email'), array('placeholder' => 'Email','class' => 'form-control')) !!}
            </div>
          </div>
        </div>
        <div class="clearfix"></div>
        <div class="form-actions" style="text-align: center">
          <input class="btn green" type="submit" name="advanceSearch" value="Search">
        </div>
      </div>
    </div>
    {!! Form::close() !!}
  </div>
  <!-- search-form -->
</div>


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire