A
A
Alexander Zharchenko2017-05-16 21:25:47
JavaScript
Alexander Zharchenko, 2017-05-16 21:25:47

How to change cell background in JavaScript?

I'm not good at programming, but there was a certain task.
There is a cell:

$(".gTableSubTop:contains('Статистика')").text('Статистика').attr({'width' : '9%'}).next().hide()';

How to set her background as a picture?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qpPeW, 2017-05-16
@exxxcitation1

$(".gTableSubTop:contains('Статистика')").text('Статистика').attr({'width': '9%', 'background-image': 'BACKGROUND_URL'}).next().hide()';

Instead of BACKGROUND_URL, insert the url of the image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question