[jQuery] Re: getJSON how to manage objects.

2009-01-25 Thread MorningZ
how can i talk to an html object $('#test') that is in the JSON Object. That doesn't make any sense $(#test) will be a DOM object, not a JSON Object On Jan 25, 2:35 pm, Trend-King i...@trend-king.de wrote: hello, i have another question about JSON i received the JSON Objekts well, so

[jQuery] Re: getJSON how to manage objects.

2009-01-25 Thread Ricardo Tomasi
A JSON object can only contain either other objects, arrays, numbers or strings. In your case the #test is just a text string, not an element. So yes, you need to append it to the document so that it's parsed and becomes part of the DOM tree. But you can also create the element without appending