「jQuery入門」jsTreeプラグインで選択したノードを取得するサンプル
構文
$(selector).on(‘changed.jstree’, function (e, data) { some code }
サンプルコード
「jQuery」jQuery-File-Uploadプラグインでファイルをアップロードするサンプル
プラグインのホームページ
使用例
$(".uploadFile").fileupload({ url : xxx, dataType: 'json', acceptFileTypes :xxx, maxFi
「jQuery入門」jsTreeプラグインを使うサンプル
使用例
1.JSコード
「ajax入門」$.ajaxSetup()関数でデフォルトオプションを設定する方法
サンプルコード
$(function(){ $.ajaxSetup({ cache: false, timeout:10000, global:true })}
「jQuery」click()とhover()関数のサンプル
書式1
$( セレクター ).click(function(){
//処理コード
});
書式2
$( セレクター ).hover(function(){
//処理コード
}); ...
「jQuery」モーダル確認ダイアログ(model dialog)のサンプル
JSコード
<script> $(function() { $( "#regDialog" ).dialog({ resizable: false, height:100, modal: true, buttons: ...
「jQuery」split()で文字列を特定の文字で分割する方法
構文
str.split(区切り文字列)
使用例1
var city = ‘tokyo,yamada,oosaki’;
//カンマで区切って分割する
var cft ...
「jQuery」Tabsウィジェットのイベントを処理する方法
説明
イベント名
activate
プロパティ名
newTab 新たにアクティブ
oldTab 非アクティブ
newPanel 新たにアクティブになったパネル
oldPanel ...