I am struggling to modify the font of a specific text in the following code, as it keeps displaying a page error.
function adjust_font_style(div_id) {
$("#testsave").html(<strong onclick=\"javascript:save_font_changes("+div_id+",font,'Arial')\">Done!</strong>
}
function save_font_changes(div_id,font_setting,settings_value) {
if(font_setting=="font"){
$("#"+div_id).css('font',settings_value);
}else if(font_setting=="size"){
$("#"+div_id).css('fontSize', settings_value);
}else if(font_setting=="colour"){
$("#"+div_id).css('color',settings_value);
}
}