if (edit_type_value == 2) { $('#type_value').prop('checked', true); } else { $('#type_value').prop('checked', false); } ************************************** if ($('#is_root').prop('checked')) { is_root = 1; } else { is_root = 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter