I am using credit card swipe reader to get the credit card info on Web page. I am successful to get the info of credit card on Web page. But it is a long string and I get it in 1 field. I know I have to split it but I don't know how.
I have seen lot of examples on internet to splitting credit card string but the string I get is different than example so that's why I want help that can any body provide short javascript code for spliting this info?
<script type="text/javascript">
function CreditCardswipe(){
var card_data = "B4888940130123456^DOE/JOHN L^18022010000000000000000000000000002120010004888123456789123=18022010000012345678";
}
</script>