I\'m having some issues with ajax and codeigniter. I\'ve already posted another question (link to question) and I thought I solved it, but I did not so I`m asking someone to wri
try this :
function increase(){ var number = parseInt($('#number').html()) + 1; $.ajax({ type: 'POST', url: 'localhost/test/Welcome/increase/', data: "increase=" + number, dataType: "text", success:function(response){ $('#number').html(response); } }); }