操作 (Manipulation)
一覧
| 表示種別 | 説明 | 
|---|---|
| クラス属性 (Class Attribute) | |
| コピー (Copying) | |
| DOM囲み挿入 (DOM Insertion, Around) | |
| DOM内部挿入 (DOM Insertion, Inside) | |
| DOM外部挿入 (DOM Insertion, Outside) | |
| DOM削除 (DOM Removal) | |
| DOM置換 (DOM Replacement) | |
| 一般属性 (General Attributes) | |
| スタイルプロパティ (Style Properties) | 
| 種別 | 概要 | 構文 | 戻り値 | 別カテゴリ | 
|---|---|---|---|---|
| Class | クラス追加 | .addClass( className ) 1.0 .addClass( function ) 1.4  | jQuery | Attributes CSS  | 
| Outside | 要素後 挿入 (コンテンツ指定) | .after( content [, content ] ) 1.0 .after( function ) 1.4 .after( function-html ) 1.10  | jQuery | |
| Inside | 要素内末尾に挿入 (内容指定) | .append( content [, content ] ) 1.0 .append( function ) 1.4  | jQuery | |
| Inside | 要素内末尾に挿入 (要素指定) | .appendTo( target ) 1.0 | jQuery | |
| General | 属性値 取得 | .attr( attributeName ) 1.0 | String | |
| General | 属性値 設定 | .attr( attributeName, value ) 1.0 .attr( attributes ) 1.0 .attr( attributeName, function ) 1.1  | jQuery | |
| Outside | 要素前 挿入 (コンテンツ指定) | .before( content [, content ] ) 1.0 .before( function ) 1.4 .before( function-html ) 1.10  | jQuery | |
| Copying | 複製 | .clone( [withDataAndEvents ] ) 1.0 .clone( [withDataAndEvents ] [, deepWithDataAndEvents ] ) 1.5  | jQuery | |
| Style | スタイルプロパティ 取得 | .css( propertyName ) 1.0 .css( propertyNames ) 1.9  | String | CSS | 
| Style | スタイルプロパティ 設定 | .css( propertyName, value ) 1.0 .css( propertyName, function ) 1.4 .css( properties ) 1.0  | jQuery | CSS | 
| Removal | 要素削除 (情報保持) | .detach( [selector ] ) 1.4 | jQuery | |
| Removal | 全子孫要素 削除 | .empty() 1.0 | jQuery | |
| Class | クラス有無 | .hasClass( className ) 1.2 | Boolean | Attributes CSS  | 
| Style | 要素(内容)の高さ 取得 | .height() 1.0 | Number | CSS Dimensions  | 
| Style | 要素(内容)の高さ 設定 | .height( value ) 1.0 .height( function ) 1.4.1  | jQuery | CSS Dimensions  | 
| Inside | 要素内容 取得 (HTMLコンテンツ) | .html() 1.0 | String | Attributes | 
| Inside | 要素内容 設定 (HTMLコンテンツ) | .html( htmlString ) 1.0 .html( function ) 1.4  | jQuery | Attributes | 
| Style | 要素(内側)の高さ 取得 パディング部を含む  | .innerHeight() 1.2.6 | Number | CSS Dimensions  | 
| Style | 要素(内側)の高さ 設定 パディング部を含む  | .innerHeight( value ) 1.8.0 .innerHeight( function ) 1.8.0  | jQuery | CSS Dimensions  | 
| Style | 要素(内側)の幅 取得 パディング部を含む  | .innerWidth() 1.2.6 | Number | CSS Dimensions  | 
| Style | 要素(内側)の幅 設定 パディング部を含む  | .innerWidth( value ) 1.8.0 .innerWidth( function ) 1.8.0  | jQuery | CSS Dimensions  | 
| Outside | 要素後 挿入 (要素指定) | .insertAfter( target ) 1.0 | jQuery | |
| Outside | 要素前 挿入 (要素指定) | .insertBefore( target ) 1.0 | jQuery | |
| Style | 単位なし数値CSSプロパティ リスト | jQuery.cssNumber 1.4.3 | Object | |
| 操作メソッド前置フィルタ | jQuery.htmlPrefilter( html ) 1.12/2.2 | String | ||
| Style | 相対位置(ドキュメント) 取得 | .offset() 1.2 | Object | |
| Style | 相対位置(ドキュメント) 設定 | .offset( coordinates ) 1.4 .offset( function ) 1.4  | jQuery | |
| Style | 要素(外側)の高さ 取得 パディング・ボーダー(・マージン)部を含む  | .outerHeight( [includeMargin ] ) 1.2.6 | Number | CSS Dimensions  | 
| Style | 要素(外側)の高さ 設定 パディング・ボーダー部を含む  | .outerHeight( value ) 1.8.0 .outerHeight( function ) 1.8.0  | jQuery | CSS Dimensions  | 
| Style | 要素(外側)の幅 取得 パディング・ボーダー(・マージン)部を含む  | .outerWidth( [includeMargin ] ) 1.2.6 | Number | CSS Dimensions  | 
| Style | 要素(外側)の幅 設定 パディング・ボーダー部を含む  | .outerWidth( value ) 1.8.0 .outerWidth( function ) 1.8.0  | jQuery | CSS Dimensions  | 
| Style | 相対位置(親要素) 取得 取得 | .position() 1.2 | Object | |
| Inside | 要素内先頭に挿入 (内容指定) | .prepend( content [, content ] ) 1.0 .prepend( function ) 1.4  | jQuery | |
| Inside | 要素内先頭に挿入 (要素指定) | .prependTo( target ) 1.0 | jQuery | |
| General | プロパティ値 取得 | .prop( propertyName ) 1.6 | Anything | |
| General | プロパティ値 設定 | .prop( propertyName, value ) 1.6 .prop( properties ) 1.6 .prop( propertyName, function ) 1.6  | jQuery | |
| Removal | 要素削除 | .remove( [selector ] ) 1.0 | jQuery | |
| General | 属性削除 | .removeAttr( attributeName ) 1.0 | jQuery | |
| Class | クラス削除 | .removeClass( [className ] ) 1.0 .removeClass( function ) 1.4  | jQuery | Attributes CSS  | 
| General | プロパティ削除 | .removeProp( propertyName ) 1.6 | jQuery | |
| Replacement | 要素置換 (要素指定) | .replaceAll( target ) 1.2 | jQuery | |
| Replacement | 要素置換 (コンテンツ指定) | .replaceWith( newContent ) 1.2 .replaceWith( function ) 1.4  | jQuery | |
| Style | 水平スクロール位置 取得 | .scrollLeft() 1.2.6 | Integer | |
| Style | 水平スクロール位置 設定 | .scrollLeft( value ) 1.2.6 | jQuery | |
| Style | 垂直スクロール位置 取得 | .scrollTop() 1.2.6 | Number | |
| Style | 垂直スクロール位置 設定 | .scrollTop( value ) | jQuery | |
| Inside | 要素内容 取得 (テキスト) | .text() 1.0 | String | |
| Inside | 要素内容 設定 (テキスト) | .text( text ) 1.0 .text( function ) 1.4  | jQuery | |
| Class | クラス 追加/削除 切替 | .toggleClass( className ) 1.0 .toggleClass( className, state ) 1.3 .toggleClass( function [, state ] ) 1.4  | jQuery | Attributes CSS  | 
| Class | クラス 追加/削除 切替 | .toggleClass( [state ] ) 1.43.0 | jQuery | Attributes CSS  | 
| Around Removal  | 親要素 削除 | .unwrap() 1.4 .unwrap( [selector ] ) 3.0  | jQuery | |
| General | 要素値 取得 | .val() 1.0 | String Number Array  | |
| General | 要素値 設定 | .val( value ) 1.0 .val( function ) 1.4  | jQuery | |
| Style | 要素(内容)の幅 取得 | .width() 1.0 | Number | CSS Dimensions  | 
| Style | 要素(内容)の幅 設定 | .width( value ) 1.0 .width( function ) 1.4.1  | jQuery | CSS Dimensions  | 
| Around | 要素囲い (個別) | .wrap( wrappingElement ) 1.0 .wrap( function ) 1.4  | jQuery | |
| Around | 要素囲い (一括) | .wrapAll( wrappingElement ) 1.2 .wrapAll( function ) 1.4  | jQuery | |
| Around | コンテンツ囲い | .wrapInner( wrappingElement ) 1.2 .wrapInner( function ) 1.4  | jQuery |