E
E
Evgeny Petrov2018-02-10 15:38:53
JavaScript
Evgeny Petrov, 2018-02-10 15:38:53

How to apply actions to all blocks with the same id?

The site has 15 blocks with the same ID.
It is necessary to add the 'hide' class to each.

I understood that it would not work, but for some reason I decided to try:
$("#divID").addClass('hide');
As a result, the class was added only to the first block (no matter how obvious it may sound)

How to add a class to all blocks?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
V
Vladimir, 2018-02-10
@borgore

you need to have different id for blocks. that's why it's called id. but the class can be the same for all blocks and you can already dance from it

D
Damir Abdullin, 2012-03-24
@damirazo

Thanks everyone for the advice. I tried to install the system from scratch on a separate blank disk, the problem persisted. I have only 2 versions - either a problem in the video card itself, or hardware incompatibility. Tomorrow I'll try to exchange it for another card, and if it doesn't help, then I'll have to carry out a deeper upgrade of the computer.

E
Evgeny Antyukhin, 2012-03-24
@AreD

Is it possible to put your new video card (GeForce GT 440) on another obviously working machine? As the second option, try to disable built-in devices in the BIOS like a sound and network card, different ports.

A
Aldorr, 2012-03-24
@Aldorr

Well, yes, either change the motherboard here, or wait for new drivers = \ And sell the card to someone who has a motherboard for AM2 \ AM3 +

I
Ivan Tikhonov, 2012-03-24
@polym0rph

I saw similar glitches due to the fact that the drivers were not completely removed. Not that the uninstallers did not cope normally, but even specialized driver sweepers are paid, etc. A vile DLL is lying around somewhere and spoils everything.
My advice is to roll a clean Windows with a new video to another partition or disk, if the problem persists, then the hardware, if not, then it means you need to look for the problem in the combat OS.

L
lashtal, 2012-03-24
@lashtal

In the nvidia drivers, during installation, there is an option "Perform a clean installation" (when choosing Custom (Advanced)).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question