るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.167秒)

別のキーワード

  1. attribute new
  2. attribute value
  3. element add_attribute
  4. rexml/document attribute
  5. rexml/document add_attribute

ライブラリ

モジュール

検索結果

CGI::HtmlExtension#checkbox_group(attributes) -> String (21332.0)

タイプが checkbox である input 要素のグループを生成します。

...ある input 要素のグループを生成します。

生成される input 要素の name 属性はすべて同じになり、
それぞれの input 要素の後ろにはラベルが続きます。

@
param attributes 属性をハッシュで指定します。

例:
checkbox_group
({ "NAME" => "...
...name",
"VALUES" => ["foo", "bar", "baz"] })

checkbox_group
({ "NAME" => "name",
"VALUES" => [["foo"], ["bar", true], "baz"] })

checkbox_group
({ "NAME" => "name",
"VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"] })...