Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ajax form submit without form tag

$(document).on('click', '#myButton', function(){  
    $.ajax({
        url: "insert.php",
        method: "post",
        data:{
            text: $('.text-value').val()
        },    
        dataType:"text",
        success:function(data){
            alert('Successfully')
        }
    })
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ajax #form #submit #form #tag
ADD COMMENT
Topic
Name
2+9 =