Skip to content

Instantly share code, notes, and snippets.

@mccar2cm
Last active December 27, 2015 12:19
Show Gist options
  • Save mccar2cm/7324477 to your computer and use it in GitHub Desktop.
Save mccar2cm/7324477 to your computer and use it in GitHub Desktop.
Javascript stuff I seem to keep forgetting
plural check
($(this).val() == 1) ? "day" : "days")
class manupilation
$( "p" ).removeClass( "myClass noClass" ).addClass( "yourClass" );
grab all selects without data-eventId = 21 and disable
$( "select[data-eventId!=21]" ).attr('disabled', false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment