後ろの弟要素を全て取得する nextAll()メソッド
- HTML
- CSS
- JavaScript
- jQuery
nextAll()は、後ろの兄要素を全て取得するメソッドです。
jQuery Code
$(function() {
$("#first").nextAll().addClass("icon");;
});
nextAll()は、後ろの兄要素を全て取得するメソッドです。
$(function() {
$("#first").nextAll().addClass("icon");;
});