Posted By

ryarwood on 01/30/12


Tagged

phone format jquery innerHTML


Versions (?)

jQuery - Format Phone Number


 / Published in: JavaScript
 

  1. var phPhone = dynamicCampaignResponse.campaign.substring(0,3) + '-' + dynamicCampaignResponse.campaign.substring(3,6) + '-' + dynamicCampaignResponse.campaign.substring(6,10);
  2. $('#LTSDynamicCampaignText').html(phPhone);

Report this snippet  

You need to login to post a comment.