Skip to content

$.getProp()

Arthur Guiot edited this page Nov 22, 2017 · 1 revision

How it works?

This function will get all the properties of an element.

How to use it?

Here are all the properties that you'll be able to get:

$.getProp(".myDiv")
/*
- .height - the element height
- .width  - the element width
- .text   - the text inside this element
- .html   - same as .text, but for html
- .css    - get computed css of element

Example:

$.getProp(".height").css.background // "#fff"

⚠️ Questions?

Don't hesitate to ask your questions ⁉️ in the issue part 😁

Clone this wiki locally