内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
13_javascript
»
01_jquery
»
03_jQuery UIでradioをbuttonへ
トレース:
13_javascript:01_jquery:03_jquery-ui_radio_to_button
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== 03_jQuery UIでradioをbuttonへ ====== ===== HTML ===== <code> <div class="span1" align="left" id="type"> <label class="control-label required" id="color" for="form_type_0">main</label> <input type="radio" id="form_type_0" name="form[type]" required="required" class="span3 inline" placeholder="type" value="1" checked="checked" /> <label class="control-label required" id="color" for="form_type_1">volumes</label> <input type="radio" id="form_type_1" name="form[type]" required="required" class="span3 inline" placeholder="type" value="2" /> <label class="control-label required" id="color" for="form_type_2">session</label> <input type="radio" id="form_type_2" name="form[type]" required="required" class="span3 inline" placeholder="type" value="3" /> </div> </code> ===== Jquery ===== 通常(横にボタンが並ぶ) <code> $("#type").buttonset(); </code> 下記のようにすると、ボタンを縦に並べる事ができる。 <code> $("#type").buttonset(); $("#type label:first").removeClass('ui-corner-left').addClass('ui-corner-top'); $("#type label:last").removeClass('ui-corner-right').addClass('ui-corner-bottom'); $("#type label").each(function(){ $(this).width('100%'); }); $("#type span").each(function(){ $(this).removeClass('ui-button-text'); }); </code>
13_javascript/01_jquery/03_jquery-ui_radio_to_button.txt
· 最終更新: 2014/07/03 02:09 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ