toggle
toggle([setting]) ⇒ self
Toggle between showing and hiding each of the elements, based on whether the
first element is visible or not. If setting
is present, this method behaves
like show if setting is truthy or hide otherwise.
var input = $('input[type=text]')
$('#too_long').toggle(input.val().length > 140)