• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

JQuery content editable div and text box on submit not sending POST

javascriptphpjqueryhtmltext-editor


PHP Snippet 1:

$(document).ready(function() {
    $("#save").on("click", function(event) {
        var formData = {text: $("#editor").html(), name: $("#name").val()};
        event.preventDefault();
        $.ajax({
            url: 'freewordsave.php',
            type:'POST',
            data: formData,
            success: function(msg)
            {
                alert('Your file was saved!');
            }
        });
    });
});

Related Snippets

PHPExcel export HTML table to xlsx

Error when uploading certain .png files "Interlace handling should be turned on when using png_read_image"

How can i update or reset my password without entering email field in laravel-8?

Laravel Jetsream Profile page not loading on fresh install

Symfony Error: "An exception has been thrown during the rendering of a template"

MySQL order by field in Eloquent

Symfony 4: "Autowire: you should configure its value explicitly."

PHP Slim Framework request using withAttribute error

Laravel lang slug in url

Laravel Carbon throws error The format separator does not match

How can I get data from PHP to Android TextView?

how to get the header value, if we don't know the value because the value is random from the server

phpunit - mockbuilder - set mock object internal property

how to loop through json response data using ajax jquery?

How to set a domain name with php artisan serve

About Contact Privacy policy Terms and conditions