How to get the values on change function..can anybody help me out?

How to get the values on change function..can anybody help me out?

i have this code

the class name Efiveper having the edtitble values.. I am trying to get all the values on change any editable this values I need to store in array so that I can pass that array of values to the controler to update that perticular user.. 

my questions is how to get the more than one updated fieldset values on change function?

 $("fieldset").each(function() {
        $
(".Efiveper").change(function() {
                ischeck
= true;
               
var array = $(this).closest("fieldset").find("input, select,textarea").map(function() {
                   
return $(this).val();
               
}).get();
                $
.cookie("editablefields", array);
                $
.cookie("checkischecked", ischeck);
           
});
       
});

using cookie I am sending this array value to other generic fiedlset on submit i am doing something like this

$('#btnSubmit').click(function(event) {
           
var checked = $('.inputchbox:checked');
           
var PMstrIDs = checked.map(function() {
               
return $(this).val();
           
}).get().join(',');
           
var s = $.cookie("checkischecked");
           
if (s == "true") {
               
var fields = $.cookie("editablefields");
           
}
           
else {
               
var fields = $.cookie("editablefields", null);
           
}
            $
('#1_fields').attr('value', fields);
       
});

using Beginform I am seing the array values to the controller

 <% using (Html.BeginForm("MassUpdate", "shared", FormMethod.Post, new { @id = "exc-"})) 
   
{ %>

   

<input type="hidden" id="fields" runat="server" />

<%= Html.ValidationSummary(true)%>  

On Controler I am getting this array values..

 string fields = (string)Request.Form[0];
               
string[] Updatefields = fields.Split(',');

this updatefield array I am passing to the update method to update that user..this array values should be more than one if user is changed number of editable fields in the second fieldset...