I was wondering how to have permanent symbols in a form field...

For example a sort code on a bank card is; xx-xx-xx

how could i keep the hypens in the field, and once the user has inputted the first 2 numbers, it skips past the hyphen to putting the next 2 numbers in...

Im thinking javascript?