Hey, I’m new to Javascript and I’m trying to edit some code on our company website. We have the contact info for our franchises stored in arrays and I want to wrap the phone numbers with <a href=”#” rel=”tel”> so that they’ll appear as links on mobile devices.
I’m just unfamiliar with the syntax and I can’t figure out how to add the <a> to the array without breaking it. Is it even possible?
Here’s an example of the contact info for one of our properties:
[CODE]
contactInfo[“5”] = [“165 Belmont Street<br />Woodland, WA 98674”, “165 Belmont Street, Woodland, WA 98674”, “<b>Tel:</b> 525-225-1355<br /><b>Fax:</b> 525-225-7813”, “<b>Office Hours:</b><br />9:00-5:00<br />Monday-Saturday”, “1716”];
Thanks in advance