:hidden


version 1.0 以降

解説

type属性が"hidden"input要素、及び、非表示状態の要素にマッチします。

記法

:file

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

例1:「テスト結果」にある、type属性が"hidden"input要素の後ろに、"<-- hidden"という文字列を追加します。

$("#test_result :hidden").parent().append($("<span/>").text("<-- hidden").css("background", "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>