I have a blockUI in which i ajax call another page through a series of buttons with same class but different attribute value(of tag). however, when i run the code, only value of first button gets submitted no matter what button i clicked. How can i modify this to send data associated with different buttons separately? Please help
$('#submit').click(function() { var action = $("#form1").attr('action'); var form_data = { message: $("#message").val(), data: $(".pageDemo1").attr("tab"), is_ajax: 1 };