i have problem ajax function. want send param method on controller , ajax function call method twice.
ajax:
$(document).ready(function () { $(document).on('click', '.exp', function (e) { var st_date = $(this).parent().find('.start').val(); var ed_date = $(this).parent().find('.end').val(); $.ajax({ url: '/reports/report_cleav/', data: { start_date:st_date, end_date:ed_date } }).success(function (data) { }) }); })
$(".exp").click(function() {
var st_date = $(this).parent().find('.start').val(); var ed_date = $(this).parent().find('.end').val(); $.ajax({ url: '/reports/report_cleav/', data: { start_date:st_date, end_date:ed_date } }).success(function (data) { }) });
?
Comments
Post a Comment