I'd like to make a custom order form for my website which will allow customers to input a custom engraved message into a textarea. Customers can engrave a maximum of 3 lines.
I'd like to collect the text from the textarea, and separate each line into its own variable. For example, if the customer typed into the textarea:
Amy and John Smith
12/14/95
I'll always be by your side
Is it possible to store each line as its own variable? (In JavaScript)
var engravementLine1 = "Amy and John Smith";
var engravementLine2 = "12/14/95";
var engravementLine3 = "I/'ll always be by your side";