6

Hello all im trying to make this slide effect http://tinyurl.com/628z32d

but im new to jquery so i need a little help :), how can i hide all the big image in the #big-mage div and hide them? and then only show the first.

do you guys have a good simple to understand slide effect tutorial i will be glad to :)

Thanks!

this is what i have http://jsfiddle.net/bF9xy/

Sjmon
  • 553
  • 3
  • 9
  • 18

3 Answers3

10

Try like this:

$("div img").hide().filter(":first-child").show();

or use the $.not() to filter out unwanted elements:

$("img").not("img.class-not-to-select").hide();
Mārtiņš Briedis
  • 17,396
  • 5
  • 54
  • 76
3

try this code:

$("img:gt(0)").hide();
DrStrangeLove
  • 11,227
  • 16
  • 59
  • 72
3
$("div#big-mage img:not(:first)").hide();
Joseadrian
  • 4,234
  • 2
  • 16
  • 7