Hi,
I need to append a delimiter (e.g. comma) to a textarea after scanning in a serial number to separate a series of serial numbers.
E.g. AE12344555, 12324253424, 23872873SD
function appendcomma(string){
var newstr
newstr = string + ", "
return newstr
}
I've tried using onchange with the above function but the changes can only be seen once focus is out of the textarea. I need to keep the focus on the textarea at all times until all serial numbers are scan.
onKeyUp doesn't work as well. I get A,E,1,2,3,4,4,5,5,5 instead of AE12344555, 12324253424
Can someone help me on this?
I need to append a delimiter (e.g. comma) to a textarea after scanning in a serial number to separate a series of serial numbers.
E.g. AE12344555, 12324253424, 23872873SD
function appendcomma(string){
var newstr
newstr = string + ", "
return newstr
}
I've tried using onchange with the above function but the changes can only be seen once focus is out of the textarea. I need to keep the focus on the textarea at all times until all serial numbers are scan.
onKeyUp doesn't work as well. I get A,E,1,2,3,4,4,5,5,5 instead of AE12344555, 12324253424
Can someone help me on this?