• 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

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

Object of class stdClass could not be converted to string error

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

How to validate tin and cst using PHP?

add uri parameter to Route name in laravel

How to add automatically collapse/expand in content wordpress (single.php)?

Clients authentication and user authentication with laravel

how to fix Service provider class not found when using repository?

php curl_exec() Connection refused when retrieving a remote image

I need to link Google Sheet with my Laravel

PHP Print to Network Printer

How to load Codeigniter 4 lang file into an array variable

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

How do I upload a laravel project on cPanel shared hosting?

How to remove index.php and index from the URL using htaccess | PHP

About Contact Privacy policy Terms and conditions