• 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

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

I want to display default profile image if user do not have profile image

Reorder attribute dropdown terms in Woocommerce single variable products

Facebook PHP SDK - will not logout properly

Laravel Model save() & update() Not Saving

how to see if database exists with PDO [duplicate]

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

How to redirect to another page and call a Function there on Angular ng-click

How to install LDAP in Docker php-fpm alpine

How to create a scheduler application in php

Why is this PHP array not the same?

How to implement placeholder in a php file for moodle plugin?

How can I access an array/object?

correct PHP headers for pdf file download

Laravel websockets AWS EC2 - Connection failed

About Contact Privacy policy Terms and conditions