Skip to content
Advertisement

Can’t get value from Summernote textarea using Javascript AJAX send post data

I’ve been checking summernote API, and there is my code

JavaScript
JavaScript

My problem is the message was successfully sent, but I didn’t get that text area value, just an empty email. Please help.

Note: that I’m using phpMailer for sending email.

Advertisement

Answer

Change the code as below:

  1. Initialize the “summernote” inside the ready function.
  2. Fetch the summer note value inside the mail submit event

Code as follows:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement