Which one of the following is the correct option for the toggle() in jQuery?
Element will hide and show
Element will Fade In and Out
Element will up and down
Element will Animate and Hide
Question 1 Explanation:
In jQuery toggle() is used to element will hide and show for the given selected element. The main purpose of a toggle in jQuery is to check it for visibility.
How to find the current selection against an expression in jQuery ?
getIs( selector )
findls( selector )
is( selector )
None of the above
Question 2 Explanation:
It is a pseudo-class selector that takes the list as an argument and selects any element that can be selected as any one of its lists The is(selector) in jQuery is used to find the current selection against an expression of the element and it returns a Boolean value if any element finds that suit then it returns a true value.
Which of the below method is responsible for merging the two or more objects into the first object ?
Question 3 Explanation:
This extends() Method in jQuery is used to merge the contents of two or more objects together into the first object. Here it takes 4 parameters deep, target, object 1, and object N. And the return type of this is the merged object.
Which selector will select all enable forms in jQuery?
Question 4 Explanation:
The :enabled selector is used to selecting all enabled form elements. It is used for selecting HTML elements that support the disabled attribute. That button tag, input tag, opt group tag, option tag, select tag, and text-area tag.
Which jQuery method is used to make the Ajax call?
ready(url, [data], [callback] )
load( url, [data], [callback] )
reload(url, [data], [callback] )
None of the above.
Question 5 Explanation:
The jQuery load() method is simple but very powerful AJAX method. The Load() method in jQuery helps to load data from the server and returned it into a selected element without loading the whole page. Syntax is $(selector).load(URL, data, callback); It takes 3 parameter URL, data and callback. Hence answer is option B.
Which method is used to check whether an element is selected or not ?
Question 6 Explanation:
The hasClass() is an inbuilt method in jQuery which checks whether the elements with the specified class name exists or not. The syntax is $(selector).hasClass(className); .It accepts a “className” parameter which specifies the class name need to search in the selected element. It returns true if the search is successful otherwise false.
The Query.noConflict(true) in jQuery is used for___
free up the $ symbol by other libraries
Remove all jQuery variables
All of the above
Question 7 Explanation:
The Query.noConflict(true) is a method in jQuery that is used to releases the hold. It is used in ) Free up the $ symbol for use by other libraries, Improve compatibility and Remove all jQuery variables.
Which jQuery method is used to check that event.stopPropagation() method was ever called on event object ?
isDefaultPrevented( ) Method
isPropagationStopped( ) Method
isImmediatePropagationStopped( ) Method
None of the above.
Question 8 Explanation:
The event.isPropagationStopped() Method in jQuery is used to check whether the object event.stopPropagation() is called or not. If event.stopPropagation() is called then it returns true otherwise returns false.
Which one of the following options is true for selecting the specified text?
None of the them
Question 9 Explanation:
The: select() is uses for selecting the specified text that is used to trigger the event. So the answer is: selects().
There are 15 questions to complete.
My Personal Notes arrow_drop_up