• 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

Refresh specific HTML content that retrieves data from MySQL

Querying only one row from a one to many relationship laravel

HTML + PHP + PHPMAILER

No result using makeStyles Material UI in react 18

laravel controller function parameters

Google API Heatmap Layer exception, why?

Star and Half Star Rating in Laravel

How to trim a video by 4 fragments to 4 seconds using the PHP-FFMpeg?

How to loop sql table data inside a html table

Zig-zag scan an N x N array

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

Google Gmail API - How to login programatically?

Laravel SQL query midnight time not showing

how to search for a file with php

PHP Download MP3 files from directory on server

About Contact Privacy policy Terms and conditions