title: how to pass data-attribute over url in materialize's modal
body: <p>Description
  I use materialize I create a button that opens a modal and passes data through data-att but it does not work.</p>
  
  <p>What I want when I click this link   </p>
  
  <pre><code>&lt;a  id="test" data-target="modalEditClient" href="#modalEditClient" class="modal-trigger waves-effect waves-light"
                                     data-idClient="{{$client-&gt;id}}" data-nom="{{$client-&gt;nom}}" data-prenom="{{$client-&gt;prenom}}"
                                     data-adresse="{{$client-&gt;adresse}}" data-tel1="{{$client-&gt;tel1}}" data-tel2="{{$client-&gt;tel2}}"
                                     &gt;&lt;i class="material-icons"&gt;mode_edit&lt;/i&gt;&lt;/a&gt;
  </code></pre>
  
  <p>want to pass the data to modal
  my Js code</p>
  
  <pre><code>$('.modal-trigger').leanModal({
          ready: function(e) {
              $(this).find('input[name="nom"]').val($(e.relatedTarget).data('nom'))
          }
      })
  </code></pre>