Which is the correct jQuery selector to select all <button> elements and <input> elements with type='input'?

25. Which is the correct jQuery selector to select all <button> elements and <input> elements with type="input"?

  1. $(".button")
  2. $(":button")
  3. $("button","input type="button")
  4. $(":button,:input")

Answer: B) $(":button")

Explanation:

The $(":button") selector is used to select all <button> elements and <input> elements with type="input".

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.