[jQuery] Combining selectors
I need help in this compound selector problem. I have the following
jQuery statements, which are working:
$("input[@type='button']").addClass("button");
$("input[@type='submit']").addClass("button");
$("input[@type='reset']").addClass("button");
I want to combine them into a single statement, such as:
$("input[@type='button' or @type='submit' or
@type='reset']").addClass("button");
or
$("input[@type='button'] or input[@type='submit'] or
input[@type='reset']").addClass("button");
similar to the Boolean OR that XPATH expresssion allows, but it does
not work. What is the proper syntax, if the combining is possible?