Uncategorized

ajax + wordpress

in header.php $(document).ready(function() {     $(“#paymentmethod select”).change(function(){                  var data = {    action: ‘showPayPalAfterRev’,    payactiveh: $(“#paymentmethod select option:selected”).val()    };       jQuery.post( ‘<?php bloginfo(‘siteurl’); ?>/wp-admin/admin-ajax.php’, data, function(response) {                                         });         if($(this).val() == ‘نقدا بالفندق’){ // or this.value == ‘volvo’  $(“.cashmoney”).fadeIn(“10000”);  $(“.converttobank”).hide();  } else if ($(this).val() == ‘تحويل بنكي’) {  $(“.converttobank”).fadeIn(“10000”);  $(“.cashmoney”).hide();        }  else if ($(this).val()… Continue reading ajax + wordpress