x
login register about faq

how to send the checked boxes value to another page using AJAX

dear all need help in how to send the checked boxes value to another page using AJAX if not ajax then suggest solution in java script

more ▼

asked Jan 21, 2013 at 06:32 AM

amolk gravatar image

amolk
2 4 5 4

(comments are locked)
10|600 characters needed characters left

1 answer: sort voted first
$('input[type="checkbox"]').on('change',function(){
var dataToSend = {checkboxValue:$(this).val()};
$.ajax({
   url: "your URL",
   type:"post",
   data: dataToSend,
   success: function(data,textStatus,xhr){
     //here will be your code on success. your response data will be in parameter "data"
   },
   error:function(xhr,textStatus,errorThrown){

   }
});
}); 

for more reference read http://api.jquery.com/jQuery.ajax/

more ▼

answered Jan 21, 2013 at 07:28 AM

mehulchauhan gravatar image

mehulchauhan
2

(comments are locked)
10|600 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1
x1

asked: Jan 21, 2013 at 06:32 AM

Seen: 637 times

Last Updated: Jan 21, 2013 at 07:28 AM