-
Notifications
You must be signed in to change notification settings - Fork 57
$.getStyle()
Arthur Guiot edited this page Jul 11, 2017
·
1 revision
This function will simply return the value of the CSS property you wanted. As the $.css()
function, this function will only interact with the HTML attribute / tag style=""
. So, this function will require 2 arguments, which are:
- the element
- the CSS property.
Let's imagine you want to know the style of an element, that's how you'll do it with the $.getSyle()
function:
HTML:
<div class="getStyle" style="color: red;">I'm written in red 😊</div>
JS:
$.getStyle($.select(".getStyle"), "color") // red
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()