AnsPress_Form::number_field( array $field = array() )
Description #
Output text type=”number”.
Parameters #
- $fieldarray (Optional) Default value: array()
Source #
File: includes/class/form.php
private function number_field( $field = array() ) { if ( isset( $field['label'] ) ) { $this->label(); } $placeholder = $this->placeholder(); $autocomplete = isset( $field['autocomplete'] ) ? ' autocomplete="off"' : ''; $this->output .= '<div class="ap-form-fields-in">'; $this->output .= '<input id="'. @$field['name'] .'" type="number" class="ap-form-control" value="'. @$field['value'] .'" name="'. @$field['name'] .'"'.$placeholder.' '. $this->attr( $field ) .$autocomplete.' />'; $this->error_messages(); if ( ! $this->field['show_desc_tip'] ) { $this->desc(); } $this->output .= '</div>'; }
Expand full source code Collapse full source code View on GitHub: includes/class/form.php:329
Add your comment