Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JavaScript c11 Question 15 (1 point) In the jQuery for using a widget, you must

ID: 3919899 • Letter: J

Question

JavaScript c11

Question 15 (1 point)

In the jQuery for using a widget, you must code a selector followed by

Question 15 options:

the method to be called and any options

the name of the widget and any options

the name of the widget, the method to be called, and any options

the method to be called, any options, and a callback function

Save

Question 16 (1 point)

The Accordion widget lets the user display the contents of a panel by clicking on

Question 16 options:

the panel

a link

a button

the header of the panel

Save

Question 17 (1 point)

The tab headings of a Tabs widget are related to their respective div elements

Question 17 options:

by the CSS file that’s included in the jQuery UI download

by the JavaScript file that’s included in the jQuery UI download

when you set the href attributes of the <a> elements within the li elements to the ids of the div elements

when you call the tab() method

Save

Question 18 (1 point)

Which of the following is NOT true about a Dialog widget that’s created without any options?

Question 18 options:

It can include a title.

It includes a Close button in the upper right corner.

It is resizable.

It is modal.

Save

Question 19 (1 point)

The Button widget is often used with input elements of the ”button” type, but it can also be used with <a> elements and input elements of which other types?

Question 19 options:

“submit”, “reset”, “radio”, and “checkbox”

“text”, “reset”, “radio”, and “checkbox”

“submit”, “reset”, “radio”, and “password”

“submit”, “email”, “radio”, and “checkbox”

Save

Question 20 (1 point)

What type of control is a Datepicker widget associated with?

Question 20 options:

a check box

a text box

a radio button

a text area

Save

Question 21 (1 point)

To call the accordion() method for a div element that has “panels” as its id attribute, you would code this JavaScript:

Question 21 options:

$(".panels").accordion();

$(".accordion").panels();

$("#panels").accordion();

$("#accordion").panels();

Save

Question 22 (1 point)

Which of the following statements would you code to activate a Tabs widget that uses the HTML that follows?
<div id="panels">
    <ul id="tabs">
        <li><a href="#tabs-1">Book description</a></li>
        <li><a href="#tabs-2">About the author</a></li>
        <li><a href="#tabs-3">Who this book is for</a></li>
    </ul>
    <div id="tabs-1"><!-- the content --></div>
    <div id="tabs-2"><!-- the content --></div>
    <div id="tabs-3"><!-- the content --></div>

</div>

Question 22 options:

$("#panels").tabs();

$("#tabs").tabs();

$("#panels li").tabs();

$("#tabs li").tabs();

Save

Question 23 (1 point)

What do the following options do?
    $("#datepicker").datepicker({
        minDate: new Date(),
        maxDate: +45

});

Question 23 options:

display a bar at the bottom of the widget with the minimum and maximum dates

add controls that let the user select between the minimum and maximum dates

set the maximum number of months that the widget can display

set the minimum and maximum dates that a user can select

Save

the method to be called and any options

the name of the widget and any options

the name of the widget, the method to be called, and any options

the method to be called, any options, and a callback function

Explanation / Answer

If you post more than 1 question, as per chegg guidelines I have to solve only first question.

Ques 15. Answer : (a)

The syntax for JQuery code is

$(selector).action()

The selector can be

action() is the method which will be when the widget is selected.

e.g:

$("button").on("click" , function(){

// task to be performed when the button is pressed

})

The above code executes when a button is pressed. When a button is pressed, the function defined in the second argument is executed.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote