• 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

woocommerce get_order_report_data to show order_item_id

Laravel Passport - Not able to get token string in response?

Normalize DateInterval in PHP

How to pass security cloudflare server with php curl

With doctrine ODM, can I embed many subdocuments in a main document?

Star rating with half star support

php - add comma thousands separator but remove trailing zeros

Pass a select with mysqli_fetch_row to a table

Yii2 redirecting to previous page after login

Generate random username based on full name php

Laravel Livewire: jQuery not working in child component loaded via @if statement

CodeIgniter 4: Like and Dislike Functionality

how to see if database exists with PDO [duplicate]

How can i hide dt if dd got empty value

Popup Window and PHP form

About Contact Privacy policy Terms and conditions