• 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

Results page in other window

Access denied for user 'homestead'@'localhost' (using password: YES)

Laravel Multi-language routes without prefix

Confirm Leave on External Links in Wordpress

Laravel websockets AWS EC2 - Connection failed

Handle error for duplicate entries - PHP/MySQL

echo language construct is discouraged. (PHP)

Convert date and time to Jalali in Laravel

Cannot connect to own websocket server when on secured domain

How do I remove this delivery notification from here?

Timber: Single post pagination does not work (wp_link_pages)

zsh: command not found: php

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

Refresh specific HTML content that retrieves data from MySQL

Encrypt in php and decrypt in Dart(flutter)

About Contact Privacy policy Terms and conditions