• 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

Execute only one time and then wait set period of time before executing again

Laravel Schedule not sending email

api response laravel doesn't show

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

PHP: How to raise number to (tiny) fractional exponent?

Get sql.h error on MacOS 12 (Monterey) sqsrv and pdo_sqsrv drive installation

Laravel - Browser displays message again when I press back button

How to identify whether webp image is static or animated?

How to show a popup modal in codeIgniter?

Navigation idle on content download

Natural ORDER in Laravel Eloquent ORM

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]

PHPExcel_IOFactory::createWriter causes wrong behaviour

Issue with laravel eloquent model property

Dropdown with current value from Mysql

About Contact Privacy policy Terms and conditions