Quantcast
Channel: User user3040610 - Stack Overflow
Viewing all articles
Browse latest Browse all 44

Answer by user3040610 for Ajax request issue

$
0
0

Handle the click event with document on...

$(document).ready(function(){  $(document).on('click','#order',function(e){     e.preventDefault();                        $.ajax({type: "POST",            url: "itemOrder_php2.php",            data: { selectedItem: $("#selectedItem").val(), sizeUnit: $("#sizeUnit").val(), quantity: $("#quantity").val(), value: x, lSize : $("#lSize").val(), lPrice : $("#lPrice").val() },            success:function(result){        $("#orderResult").html(result);                   }});    });});

Viewing all articles
Browse latest Browse all 44

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>