initSelector

このエントリーをはてなブックマークに追加

$.mobile.button.prototype.osptions.initSelectorはボタンとして初期化を行う要素のセレクタを設定できるプロパティです。

デフォルトは”button, [type=’button’], [type=’submit’], [type=’reset’]”。

これを変更したい場合は次のように指定を行ないます。

$( document ).on( "mobileinit", function() {
  $.mobile.button.prototype.options.initSelector = ".myButtons";
});

参考URL

Button Widget | jQuery Mobile API Documentation

登録日 : 2013年06月23日 最終更新日 : 2016年12月19日

同じカテゴリー(初期設定)のエントリー

検索

スポンサードリンク

バージョン

リファレンス