Skip to content

Instantly share code, notes, and snippets.

@ridhotegar
Last active December 23, 2021 05:07
Show Gist options
  • Save ridhotegar/4f0facaf0ded14e378e140e3dd107554 to your computer and use it in GitHub Desktop.
Save ridhotegar/4f0facaf0ded14e378e140e3dd107554 to your computer and use it in GitHub Desktop.
Simple show hide jquery
function deskripsi(id) {
if ( $('#deskripsi_'+id).is(':visible') ) {
$('#deskripsi_'+id).hide()
} else {
$('.deskripsi').hide()
$('#deskripsi_'+id).show()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment