-
Notifications
You must be signed in to change notification settings - Fork 57
$.getProp()
Arthur Guiot edited this page Nov 22, 2017
·
1 revision
This function will get all the properties of an element.
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"
Don't hesitate to ask your questions
- Home
- The Core Languages
- Getting Started: Installation
- The Basics (
$.var()
+$.target()
) - Developing for DisplayJS
-
$.select()
- Text related
- If...else
$.xss()
$.repeat()
$.custom()
$.live()
$.load()
$.on()
$.onEvent()
$.ready()
- Scroll API
$.all()
$.clone()
$.is()
$.valEmpty()
$.remove()
$.show()
&$.hide()
$.ajax()
- Class Related
$.css()
$.getStyle()
- Fade effects
$.extend()
$.dynamic()
$.parent()
- Elements-Nodes
$.component()
$.time_ago()
$.copy()
$.then()
$.sleep()
$.getProp()