PDA

View Full Version : selecting one of all div(background) and onclick changing it



apollo789
03-13-2016, 12:48 PM
I don't know anything about javascript.
i clickable background, bigger 480px, can be only 1 yellow background
https://jsfiddle.net/yx57fz5h/

jscheuer1
03-13-2016, 05:09 PM
I see your demo up there and you obviously know something, because it's sort of working.

What I don't understand is the problem. Are you saying that sometimes you end up with two div that have the yellow background? If so, how can I make that happen? If not, just what is the problem?

Please take your time and describe in detail what the problem is.