title: Button class pass through Ajax not working
body: <p>I have some problem. I am using Laravel. I pass html string from controller using Ajax. Example:</p>
  <pre><code> $html .= '&lt;span class=&quot;book-wishlist-btn addwish&quot; id=&quot;addwish'.$book-&gt;id.'&quot; data-placement=&quot;left&quot; title=&quot;'.$title.'&quot; style=&quot;'.$style.'&quot; book_id=&quot;'.$book-&gt;id.'&quot;&gt;';
                  $html .= '&lt;i data-feather=&quot;heart&quot;&gt;';
                  $html .= '&lt;/i&gt;';
                  $html .= '&lt;/span&gt;';
  </code></pre>
  <p>At my blade, I have 2 Ajax which is to retrieve data I pass from controller and to run class addwish. Span class id (addwish) will trigger based on jquery click function.</p>
  <p>Ajax to retrieve $html string:</p>
  <pre><code>$.ajax({
                  method:&quot;POST&quot;,  
                  dataType: &quot;json&quot;,
                  url: &quot;{{url('books')}}&quot;,
                  data: {html:html},
                  success: function(data){
                      feather.replace();
                  }
              });
  </code></pre>
  <p>Ajax to trigger addwish class click:</p>
  <pre><code> $(&quot;.addwish&quot;).click(function(){
  
              $.ajax({  
                  url : &quot;{{url('addwishlist')}}&quot;,
                  //my codes goes here..
              });
          });
  </code></pre>
  <p>My problem is the addwish class not detect. Anyone can help give an idea? Thank you</p>