Is there a shortcut way that I can set up fields of an object with javascript or jQuery? <p>I have the following code:</p> <pre><code>obj = new Object(); obj.close = close; obj.$form = $form; obj.action = $form.attr('data-action') obj.entity = $form.attr('data-entity') obj.href = $form.attr('data-href'); obj.rownum = $link.attr('data-row'); obj.$row = $('#row_' + obj.rownum); obj.$submitBt = $('.block-footer button:contains("Submit")'); </code></pre> <p>Is there some way that I could combine this into one assignment with jQuery? </p>