Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Single Page App - MVC Onclick
$('#OkToEmailButtonGroup input').on('click', function () {
if ($(this).attr("value") == 0) {
$("#TheContact_OKToEmail").val("true");
} else {
$("#TheContact_OKToEmail").val("false");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment