Picnic Website Code Tutorials

jQuery Show Description On Click Tutorial


View Demo

Using jQuery how to show description on click. Or using jQuery how to replace div on click. 10 out of 10

The JS

$('#one').click(function() {
$('#two').click(function() {
/* OR - you could get the images alt attribute and print that out 
$('#one').click(function() {
  var alt = $(this).attr('alt');
}); */

Need help adding this or other code to your website? Post it here in the forum! Forum


Top Donators

Friends of Mine