Question: I have multiple text boxes which are created dynamically , these text boxes have the same name different id's. I need to get values of all those text boxes via ajax but did not have any clue, please suggest how can I achieve this.

**Edit**

I had tried 

```
$('#addMultipleEducationLevel').on('click', function () {
    $.ajax({
        url: "${createLink(controller: 'someController', action: 'someAction')}",
        data: {degreeId:$( "#degree" ).val(),fieldOfStudy:$('[name=fieldsOfStudy]').serialize()}
    });
})

```

But I am getting 

```
 [fieldOfStudy:fieldsOfStudy=&fieldsOfStudy=Biblical+Hebrew&fieldsOfStudy=Applied+Business+(Double+Award), degreeId:3, action:someAction, controller:somecontroller]

```

Answer: 
hi @Abdullah you get all value using this way.

if you have multiple textbox with same name like

```
<input type="text" name="a1" value="a">
<input type="text"  name="a1" value="b">
<input type="text"  name="a1" value="c">
<input type="text" name="a1" value="d">

```

jquery code:

```
var a="";
$("input:text").each(function () {
    if (this.value != undefined) {
        a += this.value +',';
    }       
});
alert(a);

```

and now submit your value with ajax

```
$.ajax({
    url: "send.aspx?value=" + a,
    type: "get"
}).done(function () {
    alert("Send successfully!!");
});

```

[Live demo](http://jsfiddle.net/NeerajRai/sWG8s/6/)
To get a textbox value, according to the fact that they have different IDs **try the following jQuery snippet:**

```
$("#ID OF YOUR CHECKBOX").val();

```

**Then if you want to send these values via AJAX, use this snippet:**

```
$.ajax({
    url: "receiver.php?value="+your_value_here+"&value2="+anpther_value_here,
}).done(function() {
    alert("data sent");
});

```