Flowdock
method

telephone_field_tag

Importance_2
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActionView::Helpers::FormTagHelper
telephone_field_tag(name, value = nil, options = {}) public

Creates a text field of type “tel”.

Options

Examples

telephone_field_tag 'name'
# => <input id="name" name="name" type="tel" />

telephone_field_tag 'tel', '0123456789'
# => <input id="tel" name="tel" type="tel" value="0123456789" />

telephone_field_tag 'tel', nil, class: 'special_input'
# => <input class="special_input" id="tel" name="tel" type="tel" />

telephone_field_tag 'tel', '0123456789', class: 'special_input', disabled: true
# => <input disabled="disabled" class="special_input" id="tel" name="tel" type="tel" value="0123456789" />
Show source
Register or log in to add new notes.