how to write php string variable in javascript function


‘<div onclick= “show_ajax_next(4,5,'’.$ajax.’','’.$form_id.’');”>’ . t(”) . ‘</div>’

in short  –'’.$ajax.’&#039–;

In place of “‘” (single quote) use ‘'’

 

  1. Leave a comment

Leave a comment