You are creating a page that contains detailed employee information for a company portal.
The page uses a jQuery library. The page contains a hidden button named btnEdit that is
defined by the following code.
<button id="btnEdit" style="display: none;>Edit</button>
The button is not displayed by default.
The button must be displayed only if the user is logged on.
You need to add code to the document.ready() function to meet the requirements for the
button.
Which line of code should you use?
Option A
$ (‘#btnEdit’).appear ();
Option B
$ (‘#btnEdit’).visible = true;
Option C
$ (‘#btnEdit’).show();
Option D
$ (‘#btnEdit’).Visible();
Correct Answer
C
Explanation Explanation: With jQuery, you can hide and show HTML elements with the hide() and show() methods: Example $("#hide").click(function(){ $("p").hide(); }); $("#show").click(function(){ $("p").show(); }); Reference: jQuery Effects - Hide and Show Topic 4, Volume D
Question ID 14963
You develop a webpage by using HTML5.
The user interface of the webpage must show a gray-lined box that contains the label Enter
your information:. Inside the box are two labels and two input boxes. The first input box
must be labeled Name:. The second input box must be labeled Email:. Below the box is a
Submit button.
The user interface must look like the following;
You need to create the user interface.
Which markup should you use?