Relocating Panel Placement
Thank you for the forum. I am using quite a bit of JQuery on our site but still do not understand a lot of the "how" of it yet. I am currently using the following html and code. My question is how can I change the answer panel from opening at the bottom for every question and instead have the panel open under the associated question.
Information about 1.
Information about 2.
Information about 3.
- $(document).ready(function(){
-
- $("#infocontent").hide();
- $("#infocontent div").hide();
-
- $('#linkwrapper a[id]').click(function(){
-
- var vsubmen = this.id +"content";
-
- if( $("#infocontent").is(":visible") == false ) {
- $("#" + vsubmen).show('fast',function() {
- $("#infocontent").slideDown();
- });
- } else if ( $("#" + vsubmen).is(":visible") == false ) {
- $("#infocontent").slideUp('slow',function(){
- $("#infocontent div").hide();
- $("#" + vsubmen).show();
- $("#infocontent").slideDown('slow');
- });
- } else {
- $("#infocontent").slideUp('slow',function(){
- $("#infocontent div").hide();
- });
- }
- return false;
- });
- });