[jQuery] Reading text value on element

2009-08-27 Thread Jesper Rønn-Jensen
I access the text and change it? And where is that documented -- link wanted :) Any help appreciated :) /Jesper Rønn-Jensen www.justaddwater.dk

[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 bu

[jQuery] Re: How to select the last item in a collection?

2008-01-17 Thread Jesper Rønn-Jensen
Besh and Cloudream Thanks a lot! The answer is kind of obvious when you look at it. Thanks a lot for your quick replies! /Jesper www.justaddwater.dk

[jQuery] Re: $(document).ready does not work in IE

2008-01-17 Thread Jesper Rønn-Jensen
I expect the "J" is on purpose in "$j" as you write? This example here works for me: $(document).ready( function(){reca_clickable(); } ); where reca_clickable() is a named function. Don't know if that helped you? /Jesper

[jQuery] How to select the last item in a collection?

2008-01-17 Thread Jesper Rønn-Jensen
n("a").last is not a function I'm using JQuery 1.2.1and the solution must work in FF2, IE6, IE7. I am not able to count the links, and I prefer not swapping around the html elements, as it would require absolute positioning that might mess other stuff up. Considering