• 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

"There is no active transaction" when refreshing database in Laravel 8.0 test

Laravel - Implicit route model binding with soft deleted data

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

How can I create a Download Page with post php method?

How to change the app environment at run time?

Image upload not working through ajax Laravel

HTML + PHP + PHPMAILER

Issue saving card for customer

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

How to create custom authentication in laravel 8?

wordpress : How to specify the cause "This site can’t be reached"

Laravel Schedule not sending email

Laravel/ PHP: Order By Alphabetical with numbers in order [duplicate]

Saving Data from form to database using AngularJS and php

WordPress - Dynamically add user ID to the end of a URL

About Contact Privacy policy Terms and conditions