• 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

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

How to check user Permissions using Custom Middleware in Laravel

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

Mobile browsers are adding .html to filename on download

How do I truncate a decimal in PHP?

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

PHP echo values of all sub keys [duplicate]

Laravel Collections. Is there some kind of assertStructure method?

Laravel Displaying image from database

How to install LDAP in Docker php-fpm alpine

Laravel Schedule not sending email

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

protect my blog content

Querying only one row from a one to many relationship laravel

About Contact Privacy policy Terms and conditions