i have some data ab-cde0001. i want to separate it become two part: ab-cde and 0001.
i’m just know to separate data if consist of some space inside it.
how do i do that?
var barcode;
barCode=$("#model").val();
var data=barCode.split(" "); //must change this
$("#model").val(data[0]);
$("#serial").val(data[1]);
i have another idea, but i dont know how to start.
may be i’m just need some script read 4 digits behind the text, then split the choosen one.
i have combined the answer before, and then i found the real answer: