jQuery - my current code
$(document).ready(function() {
$('div.formHelp > div').hide();
$('div.formHelp > img').click(function() {
$(this).next('div').toggle('normal');
if
($(this).attr("src","/images/css/formHin tButton.gif"))
($(this).attr("src","/images/css/formHin tButtonSelected.gif"))
else
($(this).attr("src","/images/css/formHin tButtonSelected.gif"))
($(this).attr("src","/images/css/formHin tButton.gif"))
return false;
});
});
Basically, this will show a hidden div and swap the image - unfortunately, it still doesn't swap the image BACK. I'm still working on it...
$('div.formHelp > div').hide();
$('div.formHelp > img').click(function() {
$(this).next('div').toggle('normal');
if
($(this).attr("src","/images/css/formHin
($(this).attr("src","/images/css/formHin
else
($(this).attr("src","/images/css/formHin
($(this).attr("src","/images/css/formHin
return false;
});
});
Basically, this will show a hidden div and swap the image - unfortunately, it still doesn't swap the image BACK. I'm still working on it...
