Similarly to the above, move addClass() to a separate line for readability. css() and addClass() are two separate actions applied to to the selected element. The not() call can be moved to the first line.