I'm trying to allow customers to customize what they want on their order in WooCommerce. They will have several text fields that they can enter their content into and then be able to select what font they want to use.
The content will display in a DIV on a page so the customer can see what it will look like before they click on Add To Cart.
The text fields and font choice will then be part of the order.
I know how to display a single line of text on a page using jQuery but I'm scratching my head at multiple lines of text and changing the font-family that's displayed.
Any ideas on how to do this?
I have sketched out my code here:
<form id="TheForm">
Line 1: <input type="text" name="Line1"><br>
Line 2: <input type="text" name="Line2"><br>
Line 3: <input type="text" name="Line2"><br>
Line 4: <input type="text" name="Line2"><br>
<br>
<br>
<input type="radio" value="Arial" id="font"><span style="font-family:arial">Arial</span><br>
<input type="radio" value="Verdana" id="font"><span style="font-family:Verdana">Verdana</span><br>
<input type="radio" value="Times New Roman" id="font"><span style="font-family:Times New Roman">Times New Roman</span><br>
<br/>
<input id="submit" value="Submit" type="button" />
</form>
<br>
<br>
<div style="width:300px;height:100px;border:1px solid #000;">
Line 1 Text Here<br>
Line 2 Text Here<br>
Line 3 Text Here<br>
Line 4 Text Here
</div>