[jQuery] Re: Problems injecting text into div classes

2009-11-25 Thread seasoup
$('.direction') returns a jQuery object that is similar to an array of nodes. $('.direction')[0] returns the first node in the jQuery object, without any jQuery features... just the basic DOM node. $ ('.direction').eq(0).html or $('.direction:eq(0)').html are what you are looking for. They

[jQuery] Re: Problems injecting text into div classes

2009-11-25 Thread shaf
Thanks seasoup. That prevents the error from popping up but no html is injected into the DIV. Why do you think this is ? On Nov 25, 11:49 pm, seasoup seas...@gmail.com wrote: $('.direction') returns a jQuery object that is similar to an array of nodes.  $('.direction')[0] returns the first node