i have a form, that consist of:
<input type="text" id="model">
<input type="text" id="serial">
<input type="text" id="lot_no">
<select id="line">
beside that i have data in settingdata
table:
Model Serial Lot_no Line
abc 0001 012a 1
abc 0101 022a 1
i want if i type abc in #model then 0101 in #serial
,will show data from DB as:
#lot_no -> 022a
#line -> 1
i want for #lot_no and #serial can automaticalled filled after we type some data in 1st and 2nd textfield. how do i do that?
$('#serial').blur(function(){
$.ajax({
how about mysql query for this?