Удобный шаблон для подгрузки необходимых данных в input type select:
<script>
function loadSubCats(select)
{
var catSelect = jQuery('#subcategory_id');
jQuery.getJSON('ajax.php', { id:select.value}, function(subcatList){
catSelect.html(''); // очищаем список
jQuery.each(subcatList, function(i){
catSelect.append('<option value="' + this + '">' + this + '</option>');
});
});
}
</script>