$("div#consumer_type").find("a").each(function(){ $(this).removeClass("active"); }); $.each(['#consumer_type', '#supply_type', '#building_type', '#param_type'],function(k,v){$(v).parent().find('h4 span').remove();}); $("#consumer_type_2").addClass('active'); $('#consumer_type').parent().find($('h4')).append(''); $('input#consumer_type').val("2"); $("#li_consumer_type").html(''); $("#li_supply_type").html(''); $("#li_building_type").html(''); $("#menu_param_type").html(''); $('div#result h1').find('b').html('0,00') $('div#result h1').find('small').html('(0,00 Вт)') $('#supply_type').html("