Reputation: 477
The element I need to show is the ".triggerso" element, (which was hidden to show the ".panelso" panel). When the user clicks the ".panelso" element I'd like the ".triggerso" element to return.
$(document).ready(function(){
$(".triggerso").click(function(){
$(this).hide();
$(".panelso").show("fast");
$(".panel").hide("slow");
$(".panel1").hide("slow");
$(".panel2").hide("slow");
$(".panel3").hide("slow");
return false;
Check out the "Social" tab at the top of the page. I'm new to JQuery and have searched and searched, any help would be appreciated!
Thanks so much, Andrea
Upvotes: 2
Views: 1567
Reputation: 11028
try this...
$(".panelso").click(function() {
$(".triggerso").show();
}
Upvotes: 2
Reputation: 12275
I am not sure if i entirely understand, but you could just add,
$('.panelso').click(function(){
$('.triggerso').show();
});
Upvotes: 2
Reputation: 12418
$(".panelso").click(function() {
$(".triggerso").show();
}
This should work, unless you have multiple items with class .triggerso on your page?
Upvotes: 2