Jquery.Ajax Succes Function Return Null
Hi all,
I have a litte problem with my jquery. Actually i was in build a e-commerce site.
And i have one table called voucher. So when user when to check out it will be asked first, whether they have
voucher or not. And i want to check this with jquery ajax function.
So i have a form with id 'final basket', and code i was create is :
- $('#final-basket').submit(function(){
- var voucher = $('input[name=voucher]').val();
-
- if(voucher != '') {
- $.ajax({
- type:'GET',
- url:'_themes/_default/_plugin/_ajax.page.php',
- data: 'c=shopping&m=voucher&voucher='+voucher,
- dataType:'html',
- success:function(msg) {
- alert(msg);
- }
- });
- return false;
- } else {
- return true;
- }
- });
- });
Unfortunately i didn't get anything in success function. Thanks for every one. :)