• 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

Add bold text and line break into Laravel Notification Email

Convert string to lowercase AND then convert it to its original form in PHP, is it possible?

Confirm Leave on External Links in Wordpress

CSV to PHP class properties

How to execute sql code based on fetch array

how to prevent float variables displaying as scientific notation when printing [duplicate]

User pool client {id}does not exist

Remove product downloads section in woocommerce email notifications

PHP: remove filename from path

How to show selected value using javascript in laravel

Project structure for PHP

How to remove Deprecated SymfonyComponentDebugDebugClassLoader?

Split comma separated value from table column into rows using mysql?

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]

PHP Get value from JSON [duplicate]

About Contact Privacy policy Terms and conditions