Skip to content

Instantly share code, notes, and snippets.

@UltCombo
Created April 17, 2013 22:11
Show Gist options
  • Save UltCombo/5408179 to your computer and use it in GitHub Desktop.
Save UltCombo/5408179 to your computer and use it in GitHub Desktop.
//com jQuery
$('#talvezExista').css('backgroundColor', 'green');
//JS nativo
var el = document.getElementById('talvezExista');
if (el) {
el.style.backgroundColor = 'green';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment