I have an input like this one:
<textarea name='phone_number' id='phone_number' cols='80' rows='1'><? echo $_POST['phone_number']; ?></textarea>
well, i made a function in PHP to validate the phone number( check that's not empty and no chars in it, just + and numbers)
and now, i want to format it inline in that input with some JQuery/JavaScript thing, but the format i'm thinking something International like if i have:
0016073222153
to be +1 607-322-2153
0049329351525
to be +49 329-351-525
any ideas how can i do this? appreciate it ! thanks!