/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("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; });