<script type="text/javascript">
jQuery(document).ready(function(){
(function( jQuery ){
jQuery.fn.valList = function(){
return jQuery.map( this, function (elem) {
return elem.value || "";
}).join( "," );
};
})( jQuery );
//submit button when clicked executes the function
jQuery('#button_submit').click(function(){
// alld1 copies all input text groupx
// Id > cck1r_grupox my groupx
var alld1 = jQuery('input:text', jQuery('#cck1r_grupox')).valList();
//Write in the text field all text fields groupx
jQuery("input[name=text]").val(alld1);
});
});
</script>