:submit


version 1.0 以降

解説

type属性が"submit"input要素、及び、button要素にマッチします。

記法

:submit

button要素にもマッチしますので注意してください。

例1:「テスト結果」にある、type属性が"submit"input要素、及び、button要素の背景色を黄色にします。

$("#test_result :submit").css("background-color", "yellow");

1<input type="button" value="Input Button"/>
2<input type="checkbox" />
3<input type="file" />
4<input type="hidden" />
5<input type="image" />
6<input type="password" />
7<input type="radio" />
8<input type="reset" />
9<input type="submit" />
10<input type="text" />
11<select><option>Option</option><select>
12<textarea></textarea>
13<button>Button</button>