Я уже сделал, чтоб чистилось :-)
<script type="text/javascript">
function cat(){
var id_cat = $('select[name="cat"]').val();
$('div[name="podcat"]').html('');
$('div[name="firm"]').html('');
$.ajax({
type: 'POST',
url: 'base.php',
data: {action:'cat', id_cat:id_cat},
cache: false,
success: function(responce){$('div[name="podcat"]').html(responce);}
});
};
function firm(){
var id_podcat = $('select[name="podcat"]').val();
$('div[name="firm"]').html('');
$.ajax({
type: 'POST',
url: 'base.php',
data: {action:'firm', id_podcat:id_podcat},
cache: false,
success: function(responce){$('div[name="firm"]').html(responce);}
});
};
</script>