Return to Snippet

Revision: 13109
at April 9, 2009 08:45 by davebowker


Initial Code
$("div.ukn-search-advanced-button").click(function() {
		$("div.ukn-search-advanced-button").toggleClass('ukn-active');
		$("div.ukn-search-advanced").slideToggle(300);
		/* .ukn-search-advanced-cat */
		$("div.ukn-search-advanced ul.ukn-search-advanced-cat li:not(.ukn-list-title)").click(function() {
			$('div.ukn-search-advanced ul.ukn-search-advanced-cat li.ukn-selected').removeClass('ukn-selected');
			$(this).addClass('ukn-selected');
			var text = $(this).text();
			$(".ukn-form-hidden-cat").val(text);
			//$(".ukn-form-searchbox").val(text);
		});
		/* .ukn-search-advanced-sort */
		$("div.ukn-search-advanced ul.ukn-search-advanced-sort li:not(.ukn-list-title)").click(function() {
			$('div.ukn-search-advanced ul.ukn-search-advanced-sort li.ukn-selected').removeClass('ukn-selected');
			$(this).addClass('ukn-selected');
			var text = $(this).text();
			$(".ukn-form-hidden-sort").val(text);
		});
		return false;
	});

Initial URL

                                

Initial Description

                                

Initial Title
Jquery advanced search

Initial Tags
search, jquery, button

Initial Language
JavaScript