• 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

php 7 php.ini upload_max_filesize not working

Laravel relationship belongsToMany with composite primary keys

Return new collection without modifying original collection

PHP 8.1: strftime() is deprecated

Call to undefined function openssl_decrypt

Update Total in checkout of Woocommerce with Ajax Request

shell errors running php exec

How to override htaccees file for cache control header

Laravel get user data with profile

Clear javascript source cache laravel 5.8

Elasticsearch - Want to sort by field in all indices where that particular field available or not if not then avoid it

Mysqli multi query error

Webscraping Symfony/Panther: Can't get HTML

Transfer data between JavaScript and PHP through JSON

Pass an image through AJAX [duplicate]

About Contact Privacy policy Terms and conditions