DropDown Element Element

Home | Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Advanced Guides | Troubleshooting | About

Table of Contents

1 DropDown Element - #dropdown {}

The dropdown element produces an HTML dropdown.


#dropdown { id=dropdown1, value="2", options=[
  #option { text="Option 1", value="1" },
  #option { text="Option 2", value="2" },
  #option { text="Option 3", value="3" }


options - (list of option elements or {Value, Text} tuple)
Set the available options for this dropdown.
html_encode - (boolean)
Set to true to safely html-encode the options' text.
postback - (Erlang term)
If set, selecting an option will automatically initiate a Nitrogen postback with the supplied term.
value - (string)
If set, the option matching this value will be selected by default.
html_name - (string)
The name attribute of the dropdownbox

Date: 2014-11-12 19:51:09 CST

Author: Rusty Klophaus (@rustyio)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0


Note:To specify code blocks, just use the generic code block syntax:
<pre><code>your code here</code></pre>

comments powered by Disqus