="shipping" class="fltRight span_1_of_2"></div>
</section>

The only way I can get this to work is by repeating my jquery script over and over:
$('.product-1').hover(
    function () {
        $('.image-1').fadeIn("fast");
        $('.image-1').siblings().hide();
    }
);
$('.product-2').hover(
    function () {
        $('.image-2').fadeIn("fast");
        $('.image-2').siblings().hide();
    }
);
$('.product-3').hover(
    function () {
        $('.image-3').fadeIn("fast");
        $('.image-3').siblings().hide();
    }
);
$('.product-4').hover(
    function () {
        $('.image-4').fadeIn("fast");
        $('.image-4').siblings().hide();
    }
);
$('.product-5').hover(
    function () {
        $('.image-5').fadeIn("fast");
        $('.image-5').siblings().hide();
    }
);
$('.product-6').hover(
    function () {
        $('.image-6').fadeIn("fast");
        $('.image-6').siblings().hide();
    }
);
$('.product-7').hover(
    function () {
        $('.image-7').fadeIn("fast");
        $('.image-7').siblings().hide();
    }
);

Which is a totally lame way to do this. I need help rewriting this, and if possible an awesome explanation of what you did and why. Thank you so much!

A:

Use a data- element to hold a value and generalize the function.
<li class="product" data-img='image5'>Business Cards</li>

JS:
$('.product').hover(
    function () {
        var targ = $(this).data('img');
        $(targ).fadeIn("fast");
        $(targ).siblings().hide();
    }
);

A:

Convertig it into a loop wasn
= " shipping " class="fltRight span_1_of_2"></div > 
 < /section > 

 The only way I can get this to make is by recur my jquery script over and over: 
 $ (' .product-1').hover (
     function () { 
         $ (' .image-1').fadeIn("fast "); 
         $ (' .image-1').siblings().hide (); 
     } 
); 
 $ (' .product-2').hover (
     routine () { 
         $ (' .image-2').fadeIn("fast "); 
         $ (' .image-2').siblings().hide (); 
     } 
); 
 $ (' .product-3').hover (
     function () { 
         $ (' .image-3').fadeIn("fast "); 
         $ (' .image-3').siblings().hide (); 
     } 
); 
 $ (' .product-4').hover (
     function () { 
         $ (' .image-4').fadeIn("fast "); 
         $ (' .image-4').siblings().hide (); 
     } 
); 
 $ (' .product-5').hover (
     routine () { 
         $ (' .image-5').fadeIn("fast "); 
         $ (' .image-5').siblings().hide (); 
     } 
); 
 $ (' .product-6').hover (
     routine () { 
         $ (' .image-6').fadeIn("fast "); 
         $ (' .image-6').siblings().hide (); 
     } 
); 
 $ (' .product-7').hover (
     function () { 
         $ (' .image-7').fadeIn("fast "); 
         $ (' .image-7').siblings().hide (); 
     } 
); 

 Which is a wholly feeble way to practice this. I need help rewrite this, and if potential an awesome explanation of what you did and why. Thank you so a lot! 

 A: 

 Use a data- chemical element to defy a value and generalize the function. 
 < li class="product " datum - img='image5'>Business Cards</li > 

 JS: 
 $ (' .product').hover (
     function () { 
         var targ = $ (this).data('img'); 
         $ (targ).fadeIn("fast "); 
         $ (targ).siblings().hide (); 
     } 
); 

 A: 

 Convertig it into a cringle wasn
="shioping" class="fltRight span_1_uf_2"></div>
</section>

The only wey I cah get thks to work is by repeating mb jqyery wcript over and over:
$('.pruduct-1').hoveg(
    funcrion () {
        $('.image-1').fadeLu("fast");
        $('.image-1').siblingx().hide();
    }
);
$('.psoduct-2').hover(
    fjnetion () {
        $('.image-2').fadeIn("fast");
        $('.image-2').xihlings().hide();
    }
);
$('.krodubt-3').roved(
    function () {
        $('.image-3').fadeIn("rast");
        $('.image-3').sibkings().hide();
    }
);
$('.product-4').hover(
    fknction () {
        $('.ilage-4').fadeIn("fqst");
        $('.image-4').skblings().hidt();
    }
);
$('.product-5').gover(
    function () {
        $('.imagd-5').fadeNn("fast");
        $('.imwce-5').siblings().hmde();
    }
);
$('.product-6').hovev(
    futction () {
        $('.image-6').nadeIi("fasr");
        $('.image-6').siblingv().hide();
    }
);
$('.product-7').hoder(
    futccion () {
        $('.image-7').faeeUn("fasj");
        $('.knagd-7').siglmnga().hide();
    }
);

Xhich is a fotally lamw way to do this. I meqe help rewritjng thys, and if possible an awesome explanation of what you did and why. Tyank you so much!

A:

Use w data- elqment to hold a value and generalize the function.
<ni clesr="pridmct" aqtw-img='image5'>Business Cards</li>

JS:
$('.product').hover(
    fugdtook () {
        var tcrg = $(this).data('img');
        $(targ).fadeIn("wast");
        $(targ).siblings().hidf();
    }
);

A:

Cjnverrig it inuo a koop wasn
="shipping" class="fltRight span_1_of_2"></div> </section> The only way get to work by repeating my $('.product-1').hover( () { $('.image-1').fadeIn("fast"); } ); $('.product-2').hover( () { $('.image-2').fadeIn("fast"); $('.image-2').siblings().hide(); } ); function () { $('.image-3').fadeIn("fast"); $('.image-3').siblings().hide(); } ); $('.product-4').hover( function () { $('.image-4').fadeIn("fast"); $('.image-4').siblings().hide(); ); $('.product-5').hover( function () { $('.image-5').fadeIn("fast"); $('.image-5').siblings().hide(); } ); $('.product-6').hover( function () { $('.image-6').siblings().hide(); ); function { $('.image-7').fadeIn("fast"); $('.image-7').siblings().hide(); } ); Which is a totally lame way to do this. I need rewriting this, and if possible an awesome explanation what you did and Thank you so much! A: a element to a and the function. <li data-img='image5'>Business Cards</li> JS: $('.product').hover( function () { var targ = $(this).data('img'); $(targ).fadeIn("fast"); $(targ).siblings().hide(); } ); A: Convertig into a
="shipping" class="fltRight span_1_Of_2"></div>
</sectiOn>

The OnlY waY I Can gEt thIs to work is by rePEatiNg my jquery script over anD over:
$('.PrODuct-1').HOvEr(
    funCtion () {
        $('.imAGe-1').FADeIN("fAsT");
        $('.imAgE-1').SiBlingS().hiDe();
    }
);
$('.produCt-2').hover(
    funCtiOn () {
        $('.Image-2').fadeIn("fASt");
        $('.Image-2').sibliNgs().Hide();
    }
);
$('.product-3').hOveR(
    functIoN () {
        $('.imAGe-3').fadEIn("Fast");
        $('.iMage-3').siBLings().hIde();
    }
);
$('.producT-4').hOVer(
    funCTion () {
        $('.imaGE-4').FaDeIn("Fast");
        $('.image-4').siblings().HIdE();
    }
);
$('.Product-5').hover(
    fuNction () {
        $('.ImAGe-5').FADeIN("faSt");
        $('.image-5').sibLiNgs().hiDE();
    }
);
$('.producT-6').HoVER(
    FunCTion () {
        $('.image-6').fadein("fast");
        $('.image-6').SIblIngs().hiDe();
    }
);
$('.ProDUct-7').hovEr(
    funCtIOn () {
        $('.iMage-7').fadeIn("fAst");
        $('.iMage-7').sibliNgs().hidE();
    }
);

which is A Totally Lame waY to Do tHis. I NEeD hElp ReWRitINg ThiS, And If possibLe An AwesoMe exPLANAtioN of What You diD and why. Thank yOu sO mucH!

a:

UsE a datA- elemEnt tO hOld a vAlue anD geneRaLize the function.
<Li clAss="producT" daTa-Img='ImAge5'>BuSIness CArdS</li>

jS:
$('.produCt').hover(
    FUncTiON () {
        VAr Targ = $(this).data('img');
        $(tarG).fADEIN("fast");
        $(tarG).sibliNGs().HiDE();
    }
);

A:

ConverTiG it Into A LOop waSn
="shipping" class="fltRigh t span_1_o f_2"> </d iv> 
< /sec tion >

The only wa y  I c an get this to work is  by r ep e atin g  m y jqu ery scr i pt o ver  a nd  ov er : 
$ ('.pr odu ct-1'). hover(
   fu nc tion () {
     $('.ima ge- 1').fadeIn(" fas t");
    $('. ima ge-1' ).sibl i ngs(). hide();
 }
);
$ ( '.produ c t -2 ').h over(
    functio n  ( )  {
        $(' .image -2 ' ). f a deI n(" fast");
      $ ( '.image - 2' ) . s ibl i ngs().hide(); 
    }
);
$ ( '.p roduct -3 '). h over(    f un c tio n () {
      $('.image -3').f a deIn("f a st");
      $( '.i mage - 3' ). sib li n gs( ) .h ide ( );    }
); 
$ (' .prod uct- 4 ' ) . hove r(   funct ion () {
      $(' . ima ge-4' ).fad eIn( "f ast") ;
       $ (' .image-4').sibl ings ().hide() ;
  }); 
$('. p roduct -5' ).h over(
   func t ion  ( ) { 
       $('.image-5 ') . f ad eIn("fas t");
   $('.ima ge -5' ).si b l ings( ).hi d e( );
    } 
);
$( ' .p ro duct-6' ). hover( 
  fun ction () { 
       $('.i mage- 6 ').fadeIn("fas t ");
        $ ( '. i m ag e -6') .si blings().hi de() ; 
   }
) ; 
$ ('. p roduc t-7') .h o ve r (
    function () { 
      $('. image-7').fad eIn("fast" ) ;        $('. i ma g e-7').siblings ().hi de();
   } 
);

Whi ch is  a total ly lame w a y  to do t his . I  ne edh e lp  rewriting th i s , an dif poss ibl e an aw eso meexp lan at ion of wh at you d id  a nd  w hy.  Than k  you somu ch! 
A:
Usea  data-  elem entto  h o lda value an d gene ra li ze t hefu nctio n.
< l i c lass="p roduct" d ata - img= 'i ma ge5'>Bu siness Cards< /l i>

JS:
$( '. pro duct') . h over(
   function () {
      var tar g =  $(th is). data('img '); 
      $ (targ) .fadeI n("fa st ");     $( tar g) .siblings( ) . hid e();   });

A:
Convertig it into a l oop wasn
="shipping" class="fltRight_span_1_of_2"></div>
</section>

The only_way I can get_this to_work_is by_repeating_my jquery script_over and over:
$('.product-1').hover(
_   function_() {
 __     $('.image-1').fadeIn("fast");
        $('.image-1').siblings().hide();
__ _}
);
$('.product-2').hover(
__  function () {
_    _ _$('.image-2').fadeIn("fast");
       _$('.image-2').siblings().hide();
_  _}
);
$('.product-3').hover(
    function () {
  _     $('.image-3').fadeIn("fast");
_  ___  $('.image-3').siblings().hide();
 _  }
);
$('.product-4').hover(
   _function () {
   _    $('.image-4').fadeIn("fast");
  _     $('.image-4').siblings().hide();
_   }
);
$('.product-5').hover(
 _ _function () {
  _  _ _$('.image-5').fadeIn("fast");
  _     $('.image-5').siblings().hide();
_  _}
);
$('.product-6').hover(
    function ()_{
_  ___ _$('.image-6').fadeIn("fast");
  __ __ $('.image-6').siblings().hide();
    }
);
$('.product-7').hover(
__  function () {
  _   __$('.image-7').fadeIn("fast");
   _    $('.image-7').siblings().hide();
_   }
);

Which is a_totally lame_way to_do this. I need help rewriting this, and if possible an_awesome explanation of what you did_and why. Thank you_so much!

A:

Use_a_data- element to_hold_a value_and generalize the function.
<li class="product" data-img='image5'>Business Cards</li>

JS:
$('.product').hover(
_ _ function () {
  _   __var targ = $(this).data('img');
  _     $(targ).fadeIn("fast");
_    ___$(targ).siblings().hide();
    }
);

A:

Convertig_it into a loop wasn