Skip to content

Instantly share code, notes, and snippets.

@apipkin
Created February 24, 2010 20:17
Show Gist options
  • Save apipkin/313799 to your computer and use it in GitHub Desktop.
Save apipkin/313799 to your computer and use it in GitHub Desktop.
var _getConnectValues = function(frm) {
var values = [];
frm.all('input,textarea').each(function(o){
values.push(o.get('name') + '=' + o.get('value'));
});
return values.join('&');
}
/// use...
io.data = _getConnectValues(Y.one('#form'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment