title: how to wrap html into javascript variable and pass to blade?
body: <p>In an ajax on success function I am receiving some value and I want to pass that value into a div</p>
  <p>here is the div in blade view where I want to pass value</p>
  <pre><code>&lt;div id = &quot;demo&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p>here is my javascript code where I am receiving values</p>
  <pre><code>            success: function (data) {
              var getsellerreport = data.getsellerreport;
              var output = '&lt;tbody&gt;
              @foreach($getsellerreport as $preport)
                &lt;tr&gt;
                  &lt;td&gt;{{ $preport['product_id'] }}&lt;/td&gt;
                  &lt;/tr&gt;
             @endforeach
             &lt;/tbody&gt;';
              document.getElementById(&quot;demo&quot;).innerHTML = output;
               }
  </code></pre>
  <p>According to this code I am using <code>output= 'html'</code> to store html and trying to pass output in <code>demo</code> but it is not working.</p>
  <p>Can someone help me? how can I pass html from script to blade view?</p>