• 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

Cut an arabic string

Open a popup box after receiving result from ajax

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

Sort multidimensional array by column value within a column

How to increase the PHP upload limits [duplicate]

Why rand() every time I refresh the page?

Get WooCommerce products from specific category

Elastic Beanstalk with Laravel Envoy

How To Access A Column In M-M Relationship Table In Laravel

Use Python plotly chart in PHP

Facebook API, get page post link (PHP)

Submitting a form with ajax in Wordpress

Modify microseconds of a PHP DateTime object

auth pages not getting css in laravel

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

About Contact Privacy policy Terms and conditions