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:

<div class="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 😁

results matching ""

    No results matching ""