i’ve been modified the code like below
<script type="text/javascript">
function addtext() {
var barCode = this.(text);
$("#model").change(function() {
barCode = $this.val();
var data = barCode.split("");
$("#model").val(data[0]);
$("#serial").val(data[1]);
});
};
</script>
but..still not separate..please help.
i think you require to modify this line of code
to
more detail about split : http://www.w3schools.com/jsref/jsref_split.asp