LinkedIn CSS Skill Assessment Quiz Answers

What is the correct selector for targeting all text inputs that are not disabled?

Latest Update on 23rd March, 2022 by Certification Course Answers

What is the correct selector for targeting all text inputs that are not disabled?

  1.  input[type="text"]:not([disabled]) {...}
  2.  input[type="text"]:not("disabled") {...}
  3.  input[type*="text"]:not([disabled="disabled"]) {...}
  4.  input[type="text"]:not([type="disabled"]) {...}

Correct Answer:

  •  input[type="text"]:not([disabled]) {...}

input[type="text"] selects all the input with type text, and :not([disabled]) selects all the elements not having the attribute “disabled”. Combining both only selects all the input elements with type attribte as “text” and not having “disabled” attribute.`

Latest Updates

No posts found in this category.