I have the following 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")');
Is there some way that I could combine this into one assignment with jQuery?
It is not about jQuery. It is about JavaScript. If perfunctorily: in JavaScript object is an associative array.