1.

How to hide all the child elements with class name “x”?

Answer»

.children([selector]) is to get all the children ELEMENTS of an element and the selector can be to SELECT className of the element. The following statement is to get all the children with CLASS NAMEX”.

$("#parent").children( ".x" ).hide();


Discussion

No Comment Found