Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$(".desc-trigger").each(function() {
if ($(this).val == "1"){$(this).closest('.parent').find('.desc').show();}
else {$(this).closest('.parent').find('.desc').hide();}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment