• 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 check version of codeigniter framework?

Get lat/lon from google maps url ftid (hex)

Error Class "LaravelFortifyFeatures" not found

Add and update products to session cart in Laravel

How to redirect to another page and call a Function there on Angular ng-click

Using PHP to connect to a remote MSSQL database

I need to link Google Sheet with my Laravel

How to add class name to an existing tag in php

Reload parent page after submit in iframe

unable to load your default controller on Codeigniter

Laravel Factory not calling callback 'afterCreating'

PHP date() with timezone?

woocommerce change position of price

Unable to match results of php hash_hmac() and coldfusion hmac()

Custom post type single page not working

About Contact Privacy policy Terms and conditions