• 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

printing all running session variable in laravel 5.1

WHM Enabling mod_rewrite

Update Total in checkout of Woocommerce with Ajax Request

Add Class in html Dynamically in PHP

Get latest Tweets - What API

Spam Filter in Contact Form

Clear javascript source cache laravel 5.8

Install mysql client in docker image

How to test laravel controller method?

Not able to override collapsible.js in magento 2

How to display MySQL table using php and edit it in a web browser

how to remove %20 in the url in php

javascript html popup window

Get all WooCommerce products within own plugin

PHP array sort and remove duplicates by two field values

About Contact Privacy policy Terms and conditions