• 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

WordPress ACFNotice: get_field() - We've detected one or more calls to retrieve ACF field values before ACF has been initialized

PHP web3 ERC20 token function call

How to separate letters and digits from a string in php

getting error while enter Command => php artisan route:list

ldap is missing from system when installing adldap2 in laravel

PHPExcel How to set conditional formatting to change cell background color based on cells values

How to show selected value using javascript in laravel

Populate Dynamic Dropdowns List in Codeigniter

Convert regular text to array using notepad++

Call to undefined function openssl_decrypt

How to create laravel storage symbolic link for production or sub domain system?

how to search for a file with php

Laravel Get Days In Month From Month Number?

What is the difference between client-side and server-side programming?

Check if user online laravel

About Contact Privacy policy Terms and conditions