Home » 
        MCQs » 
        jQuery MCQs
    
        
    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"?
    
        - $(".button")
 
        - $(":button")
 
        - $("button","input type="button")
 
        - $(":button,:input")
 
    
    Answer: B) $(":button")
    Explanation:
    The $(":button") selector is used to select all <button> elements and <input> elements with type="input".