troubleshooting Question

Auto Format Text Box when User leaves the field

Avatar of Guru Ji
Guru JiFlag for Canada asked on
4 Comments1 Solution868 ViewsLast Modified:
I have this field below

     <tr bgcolor="#ECE9D8">
        <td style="width: 171px"><span class="style8"><strong>Account Number:</strong></span></td>
        <td style="width: 220px"><input id="Text20" style="width: 213px" type="text" / size="20" name="acctnum"></td>
What I want to do is AutoFormat the text entered by a user when they leave the textbox

Do if the user enters 5060012345609 OR 506001234569

IT SHOULD FORMAT ITSELF TO 50600-123456-09 OR 50600-123456-9

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros