Skip to content

Instantly share code, notes, and snippets.

@UltCombo
Created April 17, 2013 22:49
Show Gist options
  • Save UltCombo/5408421 to your computer and use it in GitHub Desktop.
Save UltCombo/5408421 to your computer and use it in GitHub Desktop.
var $el = $('#precisaExistir');
if ($el.length) {
$el.css('backgroundColor', 'green');
} else {
alert('Deu pau aqui tio.');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment