jQuery Show Description On Click Tutorial
3/30/2013Using jQuery how to show description on click. Or using jQuery how to replace div on click.
The JS
$('#one').click(function() {
$('#description').html('one');
});
$('#two').click(function() {
$('#description').html('two');
});
/* OR - you could get the images alt attribute and print that out
$('#one').click(function() {
var alt = $(this).attr('alt');
$('div').html(alt);
}); */