'; //$('span#showproductcount').replaceWith(showproductnew) ; var displayminValue = roundNumber(newpricemin, 2).toFixed(2); var displaymaxValue = roundNumber(newpricemax, 2).toFixed(2); var newamount = "" + "£" + displayminValue + ' - ' + "£" + displaymaxValue + ""; $('span#amount').replaceWith(newamount); if (filter_trigger != "filter_man") { $("input[name='filter_man']").each(function () { var iValue = $(this).attr('value'); if ($.inArray(iValue, brands_array) == -1) { $(this).attr('disabled', true); $(this.parentNode).addClass('off'); } else { $(this).attr('disabled', false); $(this.parentNode).removeClass('off'); $(this).attr('checked', true); } }); } else { $("input[name='filter_man']").each(function () { var iValue = $(this).attr('value'); if ($.inArray(iValue, brands_array) == -1) { } else { $(this).attr('disabled', false); $(this.parentNode).removeClass('off'); $(this).attr('checked', true); } }); } $.each($("input.filter_box"), function () { //alert('filter_trigger = '+filter_trigger); //alert('$(this).attr(name) = '+$(this).attr("name")); if (filter_trigger != $(this).attr("name")) { var jValue = $(this).attr('value'); if ($.inArray(jValue, filters_array) == -1) { $(this).attr('disabled', true); $(this.parentNode).addClass('off'); } else { $(this).attr('disabled', false); $(this.parentNode).removeClass('off'); $(this).attr('checked', true); } } else { filter_identity = $(this).closest("ul").attr("id"); filter_identity = filter_identity.substring(7); $("#clear_" + filter_identity).removeClass('hidebox'); $("#clear_" + filter_identity).addClass('showbox'); } }); if (filter_trigger != "filter_colour") { $("input#filter_colour").each(function () { var kValue = $(this).attr('value'); if ($.inArray(kValue, colours_array) == -1) { $(this).attr('disabled', true); $(this.parentNode).addClass('off'); } else { $(this).attr('disabled', false); $(this.parentNode).removeClass('off'); $(this).attr('checked', true); } }); } else { $("input#filter_colour").each(function () { var kValue = $(this).attr('value'); if ($.inArray(kValue, colours_array) == -1) { } else { $(this).attr('disabled', false); $(this.parentNode).removeClass('off'); $(this).attr('checked', true); } }); } }); } }); 