Question: 1. The jQuery's hover event method requires two functions to set up the event handlers for two events: when a mouse pointer moves into and
1. The jQuery's hover event method requires two functions to set up the event handlers for two events: when a mouse pointer moves into and out of the element
True
False
--------------------------------------------
2.
To change the text to "ABC" for the span elements which immediately follow the text input elements, the following jQuery statement can be used
| a | $("#text").next().text("ABC") |
| b | $(":text").next().text("ABC") |
| c | $(":text").next(text("ABC")) |
| d | $(":text").next().text="ABC" |
---------------------------------------------------------------------------
3.
The jQuery statement $("img").each ( function{...}) can be used instead of the JavaScript loop to go through all the images on the page.
True
False
-------------------------------------------------------------------------------
4.
To clear all the input elements with the type="text" the following jQuery statement can be used
| a | $(":text").val("") |
| b | $(":text").text("") |
| c | $(":text").text="" |
| d | $(":text").clear() |
--------------------------------------------------------------------
5.
The jQuery's preventDefault() method _________________________
| a | does not work in newer browsers |
| b | does not work in Internet Explorer browser |
| c | is cross-browser compatible |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
