how to can i display mobile number in 123-456-7890 format in textfield
<p>i need to enter mobile number in a text field.</p>

<p>i need to display mobile number like this format 123-456-7890.</p>

<p>for eg: 1234567890 is my mobile number,while am entering this mobile number in text field,</p>

<p>for first 3 digits i need to place -,after 3 digits again i need to place -.</p>

<p>if i enter 123 then automatically place - in text field,after 456 place ,no need of placing for further 4 digits.</p>

<p>similar to displaying text in currency format.</p>

<p>but while getting text from that text field i need to get mobile number no need of - like 1234567890,not 123-456-7890.</p>

<p>i think my question is quite clear now,let me add comment if is not.    </p>

<p>Thank u in advance.   </p>
