[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-27 Thread Sonya
Thank you, this piece of code is what I was looking for. On 27 Feb., 03:41, Charles Liu charles.li...@gmail.com wrote: function get(obj) {         var str;         for(var i in obj)         str+=i+=+obj[i]+;\n         alert(str); } 2009/2/27 Sonya ayson...@googlemail.com Hello,

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-27 Thread Sonya
Thank you all. Now with DOM Reference and Firebug I am completely happy. On 27 Feb., 03:59, mkmanning michaell...@gmail.com wrote: As a followup, I suggest you get Firebug (for Firefox) and spend some time learning to use it. You can inspect an element in the DOM tab and get everything you'd

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread James
var list = $(lisome text/li); list.text('hello world'); // 'some text' is changed to 'hello world' $(#myUL).append(list); // puts the element into your #myUL ul in your html document. On Feb 26, 3:53 pm, Sonya ayson...@googlemail.com wrote: Hello, I just begin to work with jQuery and have

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread Charles Liu
function get(obj) { var str; for(var i in obj) str+=i+=+obj[i]+;\n alert(str); } 2009/2/27 Sonya ayson...@googlemail.com Hello, I just begin to work with jQuery and have some questions. Where I can find a list of all properties for elements. E.g. I generate

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread Charles Liu
btw, usually you should focus on the property target which contains all html properties 2009/2/27 Charles Liu charles.li...@gmail.com function get(obj) { var str; for(var i in obj) str+=i+=+obj[i]+;\n alert(str); } 2009/2/27 Sonya ayson...@googlemail.com

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread mkmanning
If you're going to work with jQuery then all you need to know (assuming you know HTML and CSS, and have a general understanding of JavaScript) is contained in the docs. var list = document.createElement(li); uses a DOM method (not jQuery). The variable 'list' is a DOM node, a way to add text to

[jQuery] Re: Help for beginners. Inspecting objects.

2009-02-26 Thread mkmanning
As a followup, I suggest you get Firebug (for Firefox) and spend some time learning to use it. You can inspect an element in the DOM tab and get everything you'd ever want to know (and more) about that element. Likewise you can access jQuery objects through Firebugs console. On Feb 26, 6:54 pm,