$('input[type="radio"]').on('click change', function(e) { console.log(e.type); });
function check() { document.getElementById("red").checked = true; }