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
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)- A5% (2)
- B16% (7)
- C70% (30)
- D9% (4)
Community Discussion
No community discussion yet for this question.
