Created
April 20, 2019 17:58
-
-
Save hugolcouto/6a4272e009e709e00f9b111d1230d1b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adicionar no arquivo main.js | |
$('.form__radio').on('click', 'label', (e) => { | |
if(!$(e.target).hasClass('checked') && $(e.target).is('label')) { | |
$(e.target).addClass('checked').parent().siblings('.form__radio').find('label').removeClass() | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment