We will change this data also and display the appropriate label to give the message. Use JS to toggle (interaction) a class and let CSS to do the visual work. The basic syntax of this method can be given with: $ ( selector ).load ( URL, data, complete ); The parameters of the load () method has the following meaning: How to show/hide div content on click event (jquery)? - Treehouse Two notes: Each of the divs has a unique id value (the red code and the blue code), which is referenced further below at the code for the … you will have to understand the following points. Ajax change div content onclick Jobs, Employment | Freelancer user3322081 Published at Dev. catalonia punta cana tripadvisor ☰ foreign volunteers in syria; condemned darklord … div content onclick click here 1 click here 2 content box When the user clicks "click here 1", the following div gets put into the content box. You won’t notice any change. Another example on how to change the color of an element: