• 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

get attribute from class not working php 7

PHPExcel How to set conditional formatting to change cell background color based on cells values

ORA-12546: TNS:permission denied error connection to remote oracle server

Unable to guess the mime type as no guessers are available Laravel 5.2

Prestashop webservice API creating cart rules

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

Connecting an HTML webpage to a SQL Server

Populate Dynamic Dropdowns List in Codeigniter

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

Transpose csv file data [duplicate]

possible options to create pdf file using html elements to generate invoice in php and codeigniter

Magento 2 - Controller returning blank page

The sum of the user's points

Laravel eloquent update record without loading from database

Yii2 select2 database exception number of bound variables does not match number of tokens

About Contact Privacy policy Terms and conditions