Serialize Named Children

Serialzies all child elements that have name attributes contained within the Element including text, textarea, select, select-multiple, radio, checkbox and any other misc elements with name attributes

//just return the serialized data
var string = $('#myElement').serializeNamedChildren();

//serialize and send data to url via ajax
var string = $('#myElement').serializeNamedChildren('/some/page');

//serialize and send using more complex ajax object
var string = $('#myElement').serializeNamedChildren({
    url : '/some/page',
    onResponse : function(r){
        alert(r);
    }
});

Text Input

Radio button

green
red
purple

Checkbox

Select several flavors

grape
cherry
lime

Textarea

Select Element

select-multiple

Custom Widget

Misc Elements

div with named value
link with named value