[jQuery] Re: Reading text value on element

2009-08-28 Thread KeeganWatkins
Jesper, in your first example, you were passing the string "this", not the keyword. The keyword "this" is a reference to the button (in that case), and the string "this" is useless for that purpose. In your second example, you are creating a wrapped set, accessing the first element in that set, an

[jQuery] Re: Reading text value on element

2009-08-27 Thread Jesper Rønn-Jensen
Solution: $($("button.primary")[0]).text() -- or should we call this a workaround ? Why will I have to wrap the element in another jQuery function call? /Jesper On Aug 27, 5:26 pm, Jesper Rønn-Jensen wrote: > I'm trying to read (and then change) the text on two buttons in my > user interface