Skip to content

Instantly share code, notes, and snippets.

@alexeckermann
Forked from oliyoung/gist:31dcb1130257c052a451
Last active August 29, 2015 14:05
Show Gist options
  • Save alexeckermann/0dc91aa9ce4e99548f0a to your computer and use it in GitHub Desktop.
Save alexeckermann/0dc91aa9ce4e99548f0a to your computer and use it in GitHub Desktop.
# Better… not really. Nicer… maybe.
$search = $('#main-navbar .search')
$search.find('input').css
border: '1px solid #cccccc'
$search.find('button').hide()
$search.find('.results').html(loading)
$search.find('.active, .results').show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment