mas aku punya kode seperti ini
<script language="javascript">
function Load(data,primid){
$('#loading'+data).empty().append('<img src="img/ajax-loader.gif"/>');
$.post("option.php",{tipe:data,id:primid},
function(result){
$('#cb'+data).html(result);
$('#loading'+data).empty();
}
);
}
$(function(){
Load('produk',0);
$('#cbproduk').change(
function(){
if($('#cbproduk option:selected').val() !=''){
Load('unit_mk',$('#cbproduk option:selected').val());
}
}
);
});
</script>
</head>
<body>
<form class="block-content form" name="form_account_edit" id="form_account_edit" method="post" enctype="multipart/form-data" action="http:hay.php" onsubmit="return IQ.checkForm(this,'checkPasswordAndPicture(document.form_account_edit);');">
<div class="columns">
<div class="colx2-left">
<table cellpadding="3" class="table-padding">
<tr title="Required">
<td><b>Produk</b><span class="required">*</span></td>
<td>:</td>
<td><select name="produk" id="cbproduk" style="width:212px"></select></td>
</tr>
<tr>
<td><b>Unit</b></td>
<td>:</td>
<td><select name="unit" id="cbunit_mk" style="width:212px"></select></td>
</tr>
<tr>
<td><b>Lama</b></td>
<td>:</td>
<td><input type="text" name="lama" validation="isNotEmpty" title="kode" style="width:212px" value=""</td>
</tr>
<tr>
<td><b>Besaran</b></td>
<td>:</td>
<td><input type="text" name="besaran" validation="isNotEmpty" title="kode" style="width:212px" value=""</td>
</tr>
</table>
</div>
</div>
<div class="block-footer" style="height:30px;">
<div class="float-right">
<button type="submit"><img src="images/icons/fugue/tick-octagon.png" width="16" height="16"> Save</button>
</div>
</div>
</form>
nah kan combobox itu muncul buat di tabel produk, munculnya air,parkir,sewa. tapi misal di file air.php combobox aku pilih parkir itu tetap terisi, nah cara supaya dia hanya mau ke insert saat hanya air saja di file air dst itu bagaimana?
terima kasih