title: Laravel How to use button from controller into blade
body: <p>I'm using ajax to pass data from controller and the controller pass the response html to the ajax, this html contains a button, I want to use this button inside the blade again in jquery function, this button contains data and wants to use this data to pass it again to another controller function</p>
  
  <p>in controller</p>
  
  <pre><code>  &lt;button class="remove_this OrderItem_action Button_root" data-id="'.$Product-&gt;rowId.'" data-price="'.$Product-&gt;price*$Product-&gt;qty.'" data-qty="'.$Product-&gt;qty.'" type="submit"&gt;Remove&lt;/button&gt;
  </code></pre>
  
  <p>I want to implement this function using the passed button, like this example but it doesnt work, how can I do this</p>
  
  <pre><code>&lt;script&gt;
   $(function(){ 
  $('.remove_this').on("click", function () { 
   alert('just test');
     });
   });
  &lt;/script&gt;
  </code></pre>