title: Does Bootstrap 4.3.1 modal dialog have a data attribute similar to the jQuery UI data storage attribute?
body: <p>So I'm trying to create CRUD functionality using the bootstrap 4.3.1 modal dialog.</p>
  <p>And I was wondering if the boostrap modal dialog had a data storage attribute similar to that of the data storage attribute of the jQuery UI dialog?</p>
  <p>What I'm trying to accomplish is something similar to the below jQuery UI dialog example:</p>
  <pre><code>$( &quot;#create-country&quot; ).button().click(function() {
      $( &quot;#country-dialog&quot; ).data(&quot;country_id&quot;, 0).dialog( &quot;open&quot; );
  });
  
  $( &quot;#country-dialog&quot; ).dialog({
      autoOpen: false,
      height: &quot;auto&quot;,
      width: 400,
      modal: true,
      buttons: {
          &quot;Save&quot;: function() {
              var isValid = $(&quot;#country-form&quot;).valid();
              
              if ( isValid ) {
                  save_country( $(this).data(&quot;country_id&quot; ) );
              } else {
                  return false;
              }
          },
          Cancel: function() {
              $( this ).dialog( &quot;close&quot; );
          }
      },
      close: function() {
      }
  });
  
  oCountryTable = $( &quot;#country-table&quot; ).dataTable({
      ajax: &quot;{{ url( 'auth/country/get-countries' ) }}&quot;
      ,columns: [
          {
              ....
              data:   &quot;country_id&quot;,
              render: function ( data, type, row ) {
                  if ( type === 'display' ) {
                      return &quot;&lt;a onclick=\&quot;open_country_dialog('&quot; + data + &quot;');\&quot;&gt;Edit&lt;/a&gt;&quot;;
                  }
                  return data;
              },
              className: &quot;dt-body-center&quot;
          }
      ]
      ,&quot;pagingType&quot;: &quot;full_numbers&quot;
      ,processing: true
      ,serverSide: true
      ,stateSave: true
  });
  </code></pre>
  <p>I've already completed the CRD functionality for the bootstrap modal dialog.</p>
  <p>However I was struggling to complete the U functionality of CRUD as I don't want to ad the key as a hidden element as shown below:</p>
  <pre><code>&lt;input type=&quot;hidden&quot; name=&quot;area_id&quot; id=&quot;area_id&quot;&gt;
  </code></pre>
  <p>and in the exaple here: <a href="https://www.techiediaries.com/laravel-6-ajax-crud-tutorial-with-bootstrap-modal-and-pagination-example/" rel="nofollow noreferrer">https://www.techiediaries.com/laravel-6-ajax-crud-tutorial-with-bootstrap-modal-and-pagination-example/</a></p>
  <p>Cheers,
  Tim</p>