Hello Abu,
I wish you are fine there,
m stuck in checkbox column, in which I want to pass user_id in its onclick function but it’s not working now
$col[“name”] = “status”;
$col[“editable”] = true;
$col[“edittype”] = “checkbox”; // render as checkbox
$col[“editoptions”] = array(“value” => “true:false”); // with these values “checked_value:unchecked_value”
$col[“editoptions”][“onclick”] = “function(){ save_user_status({user_id}); }”;
$col[“formatter”] = “checkbox”;
$col[“sorttype”] = ‘text’;
if i write above line than it will console me like
ReferenceError: user_id is not defined[Learn More] why this is so ?
and can we add id Attribute in all checkbox ? so i can save its status in DB
Thanks in Advance.
1 Answers
Your Answer