Posted By

davebowker on 04/09/09


Tagged

toggle search jquery button radio effect slidetoggle


Versions (?)

Jquery advanced search


 / Published in: JavaScript
 

  1. $("div.ukn-search-advanced-button").click(function() {
  2. $("div.ukn-search-advanced-button").toggleClass('ukn-active');
  3. $("div.ukn-search-advanced").slideToggle(300);
  4. /* .ukn-search-advanced-cat */
  5. $("div.ukn-search-advanced ul.ukn-search-advanced-cat li:not(.ukn-list-title)").click(function() {
  6. $('div.ukn-search-advanced ul.ukn-search-advanced-cat li.ukn-selected').removeClass('ukn-selected');
  7. $(this).addClass('ukn-selected');
  8. var text = $(this).text();
  9. $(".ukn-form-hidden-cat").val(text);
  10. //$(".ukn-form-searchbox").val(text);
  11. });
  12. /* .ukn-search-advanced-sort */
  13. $("div.ukn-search-advanced ul.ukn-search-advanced-sort li:not(.ukn-list-title)").click(function() {
  14. $('div.ukn-search-advanced ul.ukn-search-advanced-sort li.ukn-selected').removeClass('ukn-selected');
  15. $(this).addClass('ukn-selected');
  16. var text = $(this).text();
  17. $(".ukn-form-hidden-sort").val(text);
  18. });
  19. return false;
  20. });

Report this snippet  

You need to login to post a comment.