• 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

selected value from the listbox in php

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

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

Unit (real unit test) of test laravel relationship

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

Open a popup box after receiving result from ajax

Laravel: Create morphs() relationship nullable

how to upload binary image to sql server using php laravel

How can I get user id from session in javascript?

Attempt to read property "view" on null when sending password reset email

PHP mail sending empty mails

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

Hi, I am making a contact form thingy, and my php isn't working any reason why?

Match csv filenames to table names and import

curl returning 301 error after migrating to https

About Contact Privacy policy Terms and conditions