I\'m working on a bookmarking function where the user clicks on a jQueryui button and certain information is sent to the database. But I\'m not using a form, because there i
Instead of using .ajax()
use either .get() or .post()
Using .get()
$.get('controller/addBookmark',function(data){
alert('Your bookmark has been saved');
});
Using .post()
$.post('controller/addBookmark', function(data) {
alert('Your bookmark has been saved, The contents of the page were:' + data);
});