w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
Form
Overview
Events
Properties
Methods
Fields
Numeric
Date & Time
Drop Lists
Multi Selects
Upload
Custom
w2form.error
Display error message.
error(msg)
msg
string
, error message
Returns
undefined
.
Description
This method displays error message and will emits
.onError
event.
If you have following form:
$('#form').w2form({ name : 'form', formURL : '/server/path', fields: [ { name: 'first_name', type: 'text', required: true }, { name: 'last_name', type: 'text', required: true }, { name: 'email', type: 'email' } ] });
You can
w2ui['form'].error('Some error.');
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus