• 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

How to edit Records using CodeIgniter

Laravel relationship belongsToMany with composite primary keys

how do i retrieve and display the alt text of an image in wordpress?

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

Not able to override collapsible.js in magento 2

Google API Heatmap Layer exception, why?

Destroy session upon refresh

Laravel MSSQL Server Connection not working

Yii Ajax Submit button

PHP - Store information with NO database

Reload parent page after submit in iframe

Composer fails with kylekatarnls/update-helper on new homestead

PhpSpreadSheet: How to save Workbook sheets in individual CSV files

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

how to create html table in php

About Contact Privacy policy Terms and conditions