A Learning Portal from Recruitment India
The hide() function hides an element by __
setting the vertical attribute of that element to “-100px” off the visible screen.
setting the horizontal attribute of that element to “-100px” off the visible screen.
setting “visibility” inline style attribute of that element to “hidden”.
setting “display” inline style attribute of that element to “none”.
Answer with explanation
Answer: Option DExplanation
The correct answer is setting the “display” inline style attribute of that element to “none”.
Workspace
Which of the following jQuery method returns true if the specified class is present on at least one of the set of matched elements?
hasClass( class )
hasStyleClass( class )
hasCSSClass( class )
None of the above
Answer with explanation
Answer: Option CExplanation
The correct answer is hasClass( class )
Workspace
$.extend(false, object0, object1, object2); What does the code above do?
The statement is invalid because its arguments are invalid
Extends object2 by merging object0 and object1 with object2.
Extends the object1 by merging object0 and object2 with object1
Extends the object0 by merging object1 and object2 with object0
Answer with explanation
Answer: Option DExplanation
The correct answer is Extends the object0 by merging object1 and object2 with object0
Workspace
If you hide the selected element in jquery which jquery method did you have to choose from below?
visible(false) Method
hide() Method
hidden(element) Method
display(none) Method
Answer with explanation
Answer: Option BExplanation
The correct answer is hide() Method
The hide() method is used to hide the selective elements in the query. Hence the options hide() method.
Workspace