• 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

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

How to validate Envato Purchase Code in PHP

How to increase the PHP upload limits [duplicate]

How can i update or reset my password without entering email field in laravel-8?

Get keys from associative array [duplicate]

Laravel excel maatwebsite 3.1 import, date column in excel cell returns as unknown format number. How to solve this?

Cant seem to get the Pagination to work on my WooCommerce REST API application?

How to change 'users' auth table and use another instead Laravel

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

Show rotation of tweets using current day of month

how to get value from array in laravel

PHP: convert all UTF-8 characters to HTML entities

Malformed MIME header error in Symfony 5.3

Android Volley getParams() method not getting called for JsonObjectRequest

Show Custom Data in Woocommerce Order Details Admin Area

About Contact Privacy policy Terms and conditions