Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.solveit-button').click(function() {
- var idToGet = this.getAttribute("data-solvebutton");
- $.ajax({
- type: 'GET',
- url: 'ajax.php?id' + idToGet,
- dataType: 'text',
- success: function(text, textStatus) {
- alert(text);
- },
- error: function (xhr, ajaxOptions, thrownError) {
- alert(xhr.status);
- alert(thrownError);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement