I have hard time to find out this one. I'd like to extend an object with
another array. Let's say I have an array like var $copy=
$('input[id$=copy]');
I would like to extend or  add element to $par = {}; as following:
$copy.each(function(){

$.extend($par,{$(this).attr('id'):$(this).val()}
});

i have problem with the key part of the key values object. I get error
string or identifier is expected. Any help would be greatly appreciated. 
-- 
View this message in context: 
http://www.nabble.com/dynamic-extend-tp24505460s27240p24505460.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to