php onclick $var code example
Example: pass php variable in onclick function
$html .= '<a href="javascript:void(0);" id="open_enquireyform" class="button" onClick="get_enquiryform(\''.$value->id.'\', \''.$value->name.'\');">Enquire Here</a>';
$html .= '<a href="javascript:void(0);" id="open_enquireyform" class="button" onClick="get_enquiryform(\''.$value->id.'\', \''.$value->name.'\');">Enquire Here</a>';