Skip to content

Instantly share code, notes, and snippets.

@amici-fos
Created September 21, 2016 13:08
Show Gist options
  • Save amici-fos/4554d81d5ae0a00062a42ef6eb5b0880 to your computer and use it in GitHub Desktop.
Save amici-fos/4554d81d5ae0a00062a42ef6eb5b0880 to your computer and use it in GitHub Desktop.
$("input[name='options']").on("click",function(){
$(".active").each(function(){
$(this).removeClass("active");
});
$(this).parent().addClass("active");
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment