Creating Object Key with jquery.each() loop
问题 I'm creating a namespace in javascript to loop through a form and create an object. The goal of the function when called is to loop through all of a certain form type and construct an object that has a key which is the html input's name and the value as its current value. However, it keeps returning undefined. Any help would be greatly appreciated: get_form_data.radio = function(container) { //will return the value var data = {}; //function data object to return container.find('input[type=