title: Pass multiple php variables in onclick function
body: <pre><code>$ui-&gt;button()-&gt;value('Save')
               -&gt;uiType('primary')
               -&gt;extras("onclick = helper_reschedule_in_reschedule('".$row-&gt;company_id."')")
               -&gt;id("btn_reschedule")
               -&gt;name('submit')
               -&gt;show();
  </code></pre>
  
  <p>This is part of code from a View file of codeigniter. I need to pass three more variables ($row->ppt, $row->test, $row->interview) in Onclick function above.<br/>Function 'helper_reschedule_in_reschedule' from .js file is as below-</p>
  
  <pre><code>function helper_reschedule_in_reschedule(company_id){
      var date_from = $("#date_reschedulefrom_"+company_id).val();
      var date_to = $("#date_rescheduleto_"+company_id).val();
      reschedule_in_reschedule(company_id,$date_from,$date_to);   }
  </code></pre>
  
  <p>I tried methods like-</p>
  
  <pre><code>-&gt;extras("onclick = helper_reschedule_in_reschedule('".$row-&gt;company_id.",".$row-&gt;ppt.",".$row-&gt;test.",".$row-&gt;interview."')")
  </code></pre>
  
  <p>but is not working.</p>