• 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

Magento Installation SQLSTATE[HY000] [2002] No such file or directory error

How to pass security cloudflare server with php curl

Image upload not working through ajax Laravel

how to sort by a custom appended relation to model

Apply session id from request header

Why do I have invalid argument supply for foreach in Laravel for json response? [duplicate]

Limit WooCommerce products in cart only from one custom taxonomy

PHP error: "The zip extension and unzip command are both missing, skipping."

Appending data to an anchor tag

PHP contact form configuration [duplicate]

Laravel/docker-compose/redis - Class 'Redis' not found

Call to a member function givePermissionTo() on null

Check if string contains a value in array [duplicate]

Get all WooCommerce products within own plugin

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

About Contact Privacy policy Terms and conditions