[jQuery] Re: .get(0) fails in 1.2.5

2008-05-21 Thread Brandon Aaron
This is working for me. Must be a little more deeply rooted. Could you try
and narrow things down? Create a simplified test-case that we could all
explore?

--
Brandon Aaron

On Wed, May 21, 2008 at 12:53 PM, jstrebel [EMAIL PROTECTED] wrote:


 Hi there,

 Noob.. and first post. Thanks for helping:

 When using jquery 1.2.1 this call

 var task = $(#task_+checklist_id+_+task_id)[0];
 or
 var task = $(#task_+checklist_id+_+task_id).get(0);

 both return: [object HTMLTableRowElement]

 which is correct. (we are appending rows to a table...)

 But in 1.2.5 - same calls return: undefined

 which then makes my next function,
 $.data(task, name, id);  fail.. w/ message elem has no properties

 Any ideas? Thanks.





[jQuery] Re: .get(0) fails in 1.2.5

2008-05-21 Thread Patrick McElhaney

On Wed, May 21, 2008 at 1:53 PM, jstrebel [EMAIL PROTECTED] wrote:

 When using jquery 1.2.1 ...

Have you tried 1.2.3?

Does it to work if you replace that line with a direct DOM call?

var task = document.getElementById(task_+checklist_id+_+task_id)

Patrick

-- 
Patrick McElhaney
704.560.9117