• 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

Download & Save Zoom Recording in directory by PHP

Error Class "LaravelFortifyFeatures" not found

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'column_name' in Laravel

Reorder attribute dropdown terms in Woocommerce single variable products

PHP drop down list using array's and foreach (else and for) code

PHP returning an error message and false

Explode not working properly with dash

Set quantity minimum, maximum and step at product level in Woocommerce

Input and output values for php into the browser?

Assign output of PHP function to a variable

Insert And Retrieve Data in MySQL with $.post Noob Question

phpseclib 2.0 can not use Composer to create autoload

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

How to display table header in every page using FPDF library?

About Contact Privacy policy Terms and conditions