/jQuery Mobile


Returns: jQueryversion deprecated: 1.4.0

Description: Adds field container styling to an element

Note: .fieldcontain() is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. You can now construct responsive multi-field forms by wrapping each form element and its label in a div with class ui-field-contain.

Adds class ui-field-contain to div wrappers of individual form elements which have a label. The div and the class ensure that the form is rendered responsively. At a sufficient width the label for each form element will be placed to the left of the form element, whereas on narrow displays, the label will appear above the form element.

© The jQuery Foundation and other contributors
Licensed under the MIT License.