Depends on the purpose. If it is for display only, I would use a text field in stead of a text box and concatenate the two values.
For entering a value, and then splitting it into two separate values, that would not be straight forward.