I
I
Intelix2021-07-02 11:55:44
JavaScript
Intelix, 2021-07-02 11:55:44

How to get inline jquery background-image?

There is a block

<div class="tlk__user-image tlk__user-image-bg" style="background-image:url('https://members-stat.tildacdn.com/200-76eaba64-3b0e-4279-b9b8-be72fe5168c2.jpg')"> </div>

I write to the console: Returns 'none' How to get the address of the image? $(".tlk__user-image").css('background-image')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-07-02
@delphinpro

getComputedStyle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question