Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var myId = document.getElementById("myId");
if( myId.style.display.toLowerCase() == 'none' ) {
myId.style.color = 'red';
myId.style.height = '10px';
myId.style.width = '100px';
myId.style.display = 'block';
}
if( $("myId").style.display.toLowerCase() == 'none' ) {
$("myId").style.color = 'red';
$("myId").style.height = '10px';
$("myId").style.width = '100px';
$("myId").style.display = 'block';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment