• 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

Reorder attribute dropdown terms in Woocommerce single variable products

Add 2 Webcam in one page with WebcamJS

How to use React Router with Laravel?

Laravel Model save() & update() Not Saving

PHP: convert all UTF-8 characters to HTML entities

Pass an image through AJAX [duplicate]

How to show selected value using javascript in laravel

Can't find vendor/autoload.php for Ratchet

Fetch files from next cloud storage and display in Laravel website

Unit (real unit test) of test laravel relationship

curl returning 301 error after migrating to https

Manage independently the decimal number of the price of each product [duplicate]

How to change HTML structure inside WP <head>

Confirm Leave on External Links in Wordpress

How to execute sql code based on fetch array

About Contact Privacy policy Terms and conditions