Uncheck other checkbox

by Joe Cisneros

HTML

<input type='checkbox' name='re' value="hey">
<input type='checkbox' name='re' value="No">

JavaScript

$("input[type=checkbox]").click(function(event) {
  console.log(
    $("input:not[value=" + this.value + "]")
    //$("input[name=" +this.name+ "]:checked").length
  );
});