(Debugged click_open so that you can have more than one on a page) |
(Previous edit was incomplete. NOW click_open can handle more than one on a page.) |
||
Line 202: | Line 202: | ||
if ( my_content.is(':visible')) { | if ( my_content.is(':visible')) { | ||
− | + | my_content.hide(); | |
− | + | my_icon.html("▼"); | |
− | + | myself.css("background-color", "#f2f2f2"); | |
} | } | ||
else { | else { | ||
− | + | my_content.show(); | |
− | + | my_icon.html("▶"); | |
− | + | myself.css("background-color", "#ffffff"); | |
} | } | ||
}); | }); |
Revision as of 16:04, 13 May 2016