title: Clear data in modal when clicking close in Laravel
body: <p>I have a modal (Bootstrap) for creating a new product. When I click the "close" button, which creates a new product, the old data still does not clear from the modal.</p>
  
  <p>My code:</p>
  
  <pre><code>&lt;div class="modal fade" id="product" role="dialog" aria-hidden="true" data-target="#myModal"   data-backdrop="static"  data-keyboard="false" &gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
                  &lt;h4 class="modal-title"&gt;Create new product&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;form role="form" action="{{ route('admin.product.addProduct')}}" method="post" id="frmProduct"&gt;
                      {{ csrf_field() }}
                      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
                      &lt;div class="row"&gt;
                          &lt;div class="col-md-6"&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;label for=""&gt;Product Name&lt;/label&gt;
                                  &lt;input type="text" class="form-control" id="" name="product_name"&gt;
                              &lt;/div&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;label for=""&gt;Product Type&lt;/label&gt;
                                  &lt;input type="text" class="form-control" id="" name="product_type_id"&gt;
                              &lt;/div&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;label for=""&gt;Price&lt;/label&gt;
                                  &lt;input type="text" class="form-control" id="" name="price"&gt;
                              &lt;/div&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;label for=""&gt;Status&lt;/label&gt;
                                  &lt;select class="form-control input-sm m-bot15" id="" name="status"&gt;
                                      &lt;option value="0"&gt;Inactive&lt;/option&gt;
                                      &lt;option value="1"&gt;Active&lt;/option&gt;
                                  &lt;/select&gt;
                              &lt;/div&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;label for="img"&gt;Image&lt;/label&gt;
  
                                  &lt;div class="input-group"&gt;
                                      &lt;span class="input-group-btn"&gt;
                                          &lt;span class="btn btn-default btn-file"&gt;
                                              Choose &lt;input type="file" id="imgInp"&gt;
                                          &lt;/span&gt;
                                      &lt;/span&gt;
                                      &lt;input type="text" class="form-control" name="product_image" readonly&gt;
                                  &lt;/div&gt;
                                  &lt;img id='img-upload' class="image_responsive" /&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
                      &lt;div class="col-md-6"&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for=""&gt;Description&lt;/label&gt;
                              &lt;textarea class="form-control" id="" name="description"&gt;&lt;/textarea&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for=""&gt;Note&lt;/label&gt;
                              &lt;textarea class="form-control" id="" name="addition_information"&gt;&lt;/textarea&gt;
                          &lt;/div&gt;
  
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                      &lt;input type="submit" value="Save" class="btn btn-success"&gt;
              &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I clear the data when closing the modal?</p>