Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Jquery hide() all elements with certain class except one

function showOne(id) {
    $('.hide').not('#' + id).hide();
}

showOne(1);​
Source by jsfiddle.net #
 
PREVIOUS NEXT
Tagged: #Jquery #elements #class
ADD COMMENT
Topic
Name
5+3 =