[jQuery] Re: Reading text value on button 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, and

[jQuery] Re: Reading text value on button 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 jespe...@gmail.com wrote: I'm trying to read (and then change) the text on two buttons in my