php - How to debug ajax response in firebug -
my function when function call @ time it's automatically refresh page can not see response in firebug function working can't see output in firebug
<script> function getqty(itemid) { var datastring = "itemid=" + itemid; $.ajax({ type:"get", url:"allqty.php", data: datastring, success:function(data) { $('.totalqty').html(data) } }); } </script> here call function
<a href="screen.php?{$a}&itemid={$itemarray[sec].itemid}" class="btn itemid" id="{$itemarray[sec].itemid}" name="itemid" onclick="getqty(this.id);">{$itemarray[sec].itemnm}</a>
set "persist" on in network tab in firebug or "preserve log" in chrome
Comments
Post a Comment