$( "ul#results" ).click(function() {$( this ).slideUp();});
I'm using the code in the following tutorial: http://ninetofive.me/blog/build-a-live-search-with-ajax-php-and-mysql Above is my jQuery code targeting the AJAX dropdown.
I'm trying to make the dropdown fade away when the user clicks on a link, without having the page redirect or refresh. I'm also using hashes in the URL (handled server side) for my link. For instance:
mysite.com/#selecteddropdowndata
I'm not sure whether the problem is with my URL hashes, jQuery or a combination.