click on which div hide self jquery code example Example: hidden jquery $('#yourid').attr('hidden', false); $('#yourid').attr('hidden', true);