How can I addClass to onClick this div div elements?

All the morning

I am currently trying addClass for a div element when the div is clicked by applying a css attribute.

< head >

"" < script type = "text/javascript" src = "... /scripts/Default-page.js" > < / script >

"" < link href = "... /styles/Default-page.CSS" rel = "stylesheet" type = "text/css" / >

" < script src =" https://AJAX.googleapis.com/AJAX/libs/jQuery/1.12.0/jQuery.min.js "> < / script > .

< / head >

HTML

"< div class = 'menu-waterfall-image-button' id = 'img-link-1" > < div class = 'inner-text-container' "> your guide to invest < img src =" "... / Icons/right133blue.png" alt = "" / > < / div > < / div > "

CSS

.menu-waterfall-image-button {<-Default style}

Width:33.33333%;

float: left;

background-color: #E0DDDD;

opacity: 0.9;

font-size: 17px;

color: black;

cursor: pointer;

Padding: 15px 0px 15px 0px;

}

class other {<-style to add to menu-cascading-image-button/img-link-1 onClick class}

opacity: 0.8;

background-color: gray;

color: white;

Padding: 15px 0px 15px 0px;

cursor: pointer;

font-size: 17px;

float: left;

Width:33.33333%;

}

JAVASCRIPT

$(document) .ready (function () {}

"use strict";

{$('__#img-link-1'_).click (function ()}

(this).addClass('additional-class');

});

});

No dice, however!

All modifications and advice will be appreciated.

Thanjs

Todd

Add $:

$(this).addClass('additional-class');

Tags: Dreamweaver

Similar Questions

Maybe you are looking for

  • Virus

    I think having a virus. I found a 'letter' to "jhonny appleseed" 'Kate' and I also found channels and other strange appearance files code. I tried to remove a number of these files, but they will not clear the just reappear. I don't know if this is r

  • Why all the videos are scrambled. not clear

    When you view the videos or ads they are all scrambled, & is not clear. My os is linux zorin are the correct settings? Many thanks allan

  • HP Z620 workstation: HP Z620 Workstation - WS displays video &amp; Fans Spin loudly or fails - red light with 8 beeps

    HelloI have a HP Z620 workstation. My processor is an Intel Xeon E5-2660 SR0KK 2.2 GHZ 20 MB 8 GT/s LGA 2011 8 - Core CPU.  More correctly, it's a category of Xeon E5-26xx (dual processor), 8 cores, frequency 2.2 GHz, turbo 5/5/6/6/7/7/8/8, 8 × 256 K

  • Windows embedded 7

    Hello!Is it possible to install engine time and running exe-s which are built in LV 2011? If Yes, can someone tell me what Run-Time Engine I need instalbb on Windows Embedded 7?Thank you for your help and responseConcerningMr. Gabor

  • M1530

    Take the food for a copy via the auto power supply but no copy comes out. Copy on the glass very well.