$("input:radio").on("click",function (e) { var inp=$(this); //cache the selector if (inp.is(".theone")) { //see if it has the selected class inp.prop("checked",false).removeClass("theone"); return; } $("input:radio[name='"+inp.prop("name")+"'].theone").removeClass("theone"); inp.addClass("theone"); });
Revisions
- February 9, 2022 @ 18:54:33 [Current Revision] by Sharing Solution
- February 9, 2022 @ 18:54:36 [Autosave] by Sharing Solution
- February 9, 2022 @ 18:54:33 by Sharing Solution
- November 8, 2021 @ 21:17:56 by Sharing Solution
Revision Differences
There are no differences between the February 9, 2022 @ 18:54:36 [Autosave] revision and the current revision. (Maybe only post meta information was changed.)
No comments yet.