You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
Arthur Guiot edited this page Jul 11, 2017
·
1 revision
How does it work?
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.
How to use it?
Let's imagine you want to know the style of an element, that's how you'll do it with the $.getSyle() function:
HTML:
<divclass="getStyle" style="color: red;">I'm written in red 😊</div>
JS:
$.getStyle($.select(".getStyle"),"color")// red
⚠️ Questions?
Don't hesitate to ask your questions ⁉️ in the issue part 😁