01.
<form action=
"picking-save.php"
method=
"POST"
>
02.
<input type=
"text"
id=
"txtRFID"
name=
"txtRFID"
/>
03.
<input type=
"text"
id=
"txtEmpID"
name=
"txtEmpID"
/>
04.
<button type=
"submit"
>ok</button>
05.
</form>
06.
07.
<script type=
"text/javascript"
>
08.
$(document).ready(
function
(){
09.
$(
'#txtRFID'
).keyup(
function
(){
10.
var
txt = $(this).val();
11.
if
(txt !=
''
)
12.
{
13.
$.ajax({
14.
url:
"returnFetch.php"
,
15.
method:
"POST"
,
16.
data:{search:txt},
17.
dataType:
"text"
,
18.
success:
function
(data)
19.
{
20.
$(
'#txtEmpID'
).val(data);
21.
}
22.
});
23.
}
24.
else
25.
{
26.
$(
'#txtEmpID'
).val(
''
);
27.
}
28.
});
29.
});
30.
</script>