-1

if の何が問題なのかわかりません。誰か助けてください。

$("#tablet_windows").on('click', function(){
    $( ".demo-divs .span3" ).each(function( index ) {
        var that = $(this);
        if(!that.hasClass('opacity')) {
            //this line is wrong
            that.find('.attributes-container .tablet_windows').length == 0;  { 
            that.toggleClass('opacity');
            that.find('.rating').toggleClass('opacity');
            }
        }
    });
});
4

4 に答える 4

0
  if(that.find('.attributes-container .tablet_windows').length == 0)
{
            that.toggleClass('opacity');
            that.find('.rating').toggleClass('opacity');
            }
于 2013-05-23T11:31:55.367 に答える