Skip to content

Instantly share code, notes, and snippets.

@adrianpike
Created January 26, 2012 02:03
Show Gist options
  • Save adrianpike/1680459 to your computer and use it in GitHub Desktop.
Save adrianpike/1680459 to your computer and use it in GitHub Desktop.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
<script type="text/javascript">
$(function() {
$ = function(selector) {
$ = jQuery;
return jQuery('#foobar').find(selector);
}
console.log($('.other_shit'));
});
</script>
<div id="foobar">
<div class="other_shit">
</div>
</div>
<div class="other_shit">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment