javascriptformsinputtextareamandrill

Text input vs. Text Area


I'm using the Mandrill App for a contact form on a website. I understand that using "input type" works for me but not text area. How can I make text area work?

ex. <input type="text" class="inputMessage messageHeight required" name="message" id="thetext" placeholder="MESSAGE"/>

This is my fiddle: http://jsfiddle.net/nightcoregirl/owLsvqa4/1/


Solution

  • Replace your input text box with textarea like below:

            <textarea class="inputMessage messageHeight required" name="message" id="thetext" placeholder="MESSAGE"></textarea>
    

    In your submit event handler, you're referring to the id thetext so that must be kept intact.

    DEMO