I am struggling to make fadeToggle work properly. I want to reveal text when clicking on another div. Since I plan to use this for multiple elements, I am looking for a smart and efficient way to handle them all.
Here is my current attempt which does not seem to work (I suspect I am not using "this" correctly):
$(document).ready(function() {
$('#daily').click(function () {
$('this p').fadeToggle(100);
}):
$('#color').click(function () {
$('this p').fadeToggle(100);
}):
$('#bw').click(function () {
$('this p').fadeToggle(100);
}):
}):
Check out the jsfiddle: http://jsfiddle.net/qEKJe/
I would like to incorporate this with a .load() call, but I am unsure if that will affect anything.
Additionally, I would appreciate it if you could make it so that revealing a new text block closes any currently open ones for bonus points.