DarrenPower
IS-IT--Management
Hi,
I wonder if you can help me. I have a right hand column with an image in the background, and questions in the left hand column.
Next to the questions are icons which, when clicked, bring up help text in the right column and hide the column's background image.
If they click on the help text or the icon, then the text disappears, but the background image of the column does not reappear, unsurprisingly.
I'm currently using jQuery toggle.
Is there a way of ensuring that the background image displays when the help test is off? I tried using toggle for the background image also, but if you clicked on the help text for a different question, both would appear and affect layout.
e.g. (.d2a-info is the background image)
$(document).ready(function() {
$('a.showhidecontact, .contact').click( function() {
$('.name').hide();
$('.contact').toggle();
$('.security').hide();
$('.address').hide();
$('.d2a-info').hide();
return false;
});
});
I wonder if you can help me. I have a right hand column with an image in the background, and questions in the left hand column.
Next to the questions are icons which, when clicked, bring up help text in the right column and hide the column's background image.
If they click on the help text or the icon, then the text disappears, but the background image of the column does not reappear, unsurprisingly.
I'm currently using jQuery toggle.
Is there a way of ensuring that the background image displays when the help test is off? I tried using toggle for the background image also, but if you clicked on the help text for a different question, both would appear and affect layout.
e.g. (.d2a-info is the background image)
$(document).ready(function() {
$('a.showhidecontact, .contact').click( function() {
$('.name').hide();
$('.contact').toggle();
$('.security').hide();
$('.address').hide();
$('.d2a-info').hide();
return false;
});
});