Results 1 to 2 of 2

Thread: selecting one of all div(background) and onclick changing it

  1. #1
    Join Date
    Mar 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default selecting one of all div(background) and onclick changing it

    I don't know anything about javascript.
    i clickable background, bigger 480px, can be only 1 yellow background
    https://jsfiddle.net/yx57fz5h/

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Changing Slideshow 'background'
    By Schaddi in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 07-06-2014, 03:28 AM
  2. change the background color of the td onclick
    By developerhusain in forum Looking for such a script or service
    Replies: 1
    Last Post: 05-27-2013, 01:36 PM
  3. Replies: 7
    Last Post: 11-09-2007, 12:49 AM
  4. Replies: 5
    Last Post: 03-18-2007, 05:00 AM
  5. How to change background color of row onclick?
    By jpaulraj in forum JavaScript
    Replies: 19
    Last Post: 08-14-2006, 02:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •