Skip to content

Instantly share code, notes, and snippets.

@raineorshine
Created April 29, 2014 00:08
Show Gist options
  • Save raineorshine/11387578 to your computer and use it in GitHub Desktop.
Save raineorshine/11387578 to your computer and use it in GitHub Desktop.
jQuery Essentials

.css

Sets or gets the css of an elements

// get
var currentColor = $('.container').css();

// set
$('.container').css({ color: 'red', fontSize: 24 });

.text

.val

.append

.remove

.empty

.addClass/removeClass

.attr

.offset

.width/height

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment