jQuery('#my_month,#my_year').change(function (e) { var bna=1; jQuery(".aj-loging").css("display", "block"); jQuery("#my_calender").css("opacity", "0.30"); var mon = jQuery('#my_month').val(); var year = jQuery('#my_year').val(); var to = year + mon; var data = { action: 'bddp_ac', ma: to, bn:bna, }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.get(ajaxurl, data, function (response) { jQuery("#my_calender").html(response); jQuery(".aj-loging").css("display", "none"); jQuery("#my_calender").css("opacity", "1.00"); }); });