var checkboxObj = document.getElementById("order_ing_1"); checkboxObj.checked = !checkboxObj.checked;