DiviArea.Utils.isPosition()

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Functions
  6. DiviArea.Utils.isPosition()
DiviArea.Utils.isPosition(container, positionType)

Checks, whether the given element (or one of its’ parents) has the given position attribute. Typically used to check, if an element is fixed or inline.

Params

container
(jQuery, required) The element to check.
positionType
(string, required) The position value to find, like absolute or fixed.

Returns

True, when the given element has the given position type.

Notes

No notes

Was this article helpful?

Related Articles