[jQuery] Re: couple of Cycle questions

2009-09-01 Thread cherry.aus...@gmail.com
Mike, thank you for taking the trouble to reply :) I should have thought of the extra divs ... and am doing it now. Firefox is giving me the eq error under the CSS tab (your demo doesn't get it) but, as it doesn't seem to do anything, I won't worry about it! Cheers, Cherry. On Sep 1, 7:46 pm,

[jQuery] couple of Cycle questions

2009-08-31 Thread cherry.aus...@gmail.com
I'm using Mike Alsup's Cycle plugin (as usual!) and have a couple of annoying glitches you might be able to advise on? Firstly, the images are different sizes and I'd really like to be able to centre them in the container div. Can't do it with CSS, so I'm guessing Cycle calculates positions from

[jQuery] Re: Select Span with Span Parent

2009-08-31 Thread cherry.aus...@gmail.com
$( 'span span' ) :) On Sep 1, 3:14 am, a1anm alanmoor...@gmail.com wrote: Hi, How would I select all spans which have a span as a parent? Thanks!

[jQuery] Re: Problem getting selected value from drop-down

2009-05-17 Thread cherry.aus...@gmail.com
Can I just thank you guys!! I've wasted hours trying to fiddle around with selectedIndex and stuff; the best I achieved was to get the html object returned :( It wasn't clear from the docs. Confusingly, I did get the option text with $( 'select#myselect option:selected' ).text(). But I couldn't

[jQuery] how to get one class from a multi-class element?

2009-01-24 Thread cherry.aus...@gmail.com
I'm getting all knotted up on this! I'm looking to use one class, from an element with several, as a selector. Example: div class=red tiny bold p class=tiny target = $( 'div' ).attr( 'class' ); // get 'tiny' from returned value $( 'p. + target + ' ).doSomething(); How to I get jQuery to pick

[jQuery] Re: jquery fadeto

2009-01-24 Thread cherry.aus...@gmail.com
Hi, Tom. I'm not great at this myself, but you need to chain your two functions. For mouseovers, you can use the built-in hover function. Try something like, $(#parent1).find(a:first + ul).hover(function() { $(#firstImage).fadeTo(slow,.99); }, function() {

[jQuery] Re: how to get one class from a multi-class element?

2009-01-24 Thread cherry.aus...@gmail.com
Thanks for your perception, donb ;) And thank you, Ram, that's exactly what I needed! Cherry On Jan 24, 11:15 pm, donb falconwatc...@comcast.net wrote: $(p).hasClass(tiny).each(   function(i) {   ...do something ..   } ); On Jan 24, 4:13 pm, cherry.aus...@gmail.com cherry.aus

[jQuery] Re: how to hide content while page loads

2009-01-24 Thread cherry.aus...@gmail.com
It didn't when I went there just now. On Jan 24, 6:34 pm, Michael sharps...@gmail.com wrote: Hi, Jquery newbie. I have a nifty accordion working. Only problem is while the page is loading, or refreshing, the first of the accordion sections flashes open. Not a big deal, but looks tacky, Any