Answers for "ajax form submit without form tag"

0

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')
        }
    })
})
Posted by: Guest on March-31-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language