[jQuery] Re: Help with some jquery basics

2009-07-01 Thread Lee Hanson
Thanks for the pointer :)! -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Ricardo Sent: 28 June 2009 20:27 To: jQuery (English) Subject: [jQuery] Re: Help with some jquery basics You're trying to set the 'opid' pro

[jQuery] Re: Help with some jquery basics

2009-06-28 Thread Ricardo
You're trying to set the 'opid' property of opid[0] when it doesn't exist. You should either create an object in that position first: opid[i] = {}; opid[i]['opid'] = $(this).attr("id").substr(9); Or just save it directly to the index (like a simple array): opid[i] = $(this).attr("id").substr(9);