Sha256: f2cec693637fcf78ff4e1f3280e9909cbcab3e9e87417f5a0a73cb18312b5047
Contents?: true
Size: 469 Bytes
Versions: 8
Compression:
Stored size: 469 Bytes
Contents
export default function() { $('input[name="login"]').click(function() { let $radio = $(this); // if this was previously checked if ($radio.data("waschecked") === true) { $radio.prop("checked", false); $radio.data("waschecked", false); } else $radio.data("waschecked", true); // remove was checked from other radios $radio.siblings('input[name="login"]').data("waschecked", false); }); }
Version data entries
8 entries across 8 versions & 1 rubygems