nerdexam
Microsoft

98-375 · Question #96

You develop an HTML5 webpage. You have the following HTML markup: You need to change the background color for all of the elements whose name attribute ends with the word name. Which code segment…

The correct answer is C. $('input[name$="name"]'). css{{'background-color' : '#E0ECF8'}). See the full explanation below for the reasoning.

Question

You develop an HTML5 webpage. You have the following HTML markup:

You need to change the background color for all of the elements whose name attribute ends with the word name. Which code segment should you add to the webpage?

Exhibit

98-375 question #96 exhibit

Options

  • A$ ('#name').css ({ 'background-color' : '#E0ECF8' });
  • B$ ('input [name |="name"; ] ' ) .css (( 'background-color' :
  • C$('input[name$="name"]'). css{{'background-color' : '#E0ECF8'});
  • D$ ('*name' ) .css ({ 'background-color' : ' #E0ECF8'}) ;

How the community answered

(43 responses)
  • A
    5% (2)
  • B
    16% (7)
  • C
    70% (30)
  • D
    9% (4)

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice