A question about swapping text

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   A question about swapping text
Malkalypse
CZ Newbie
Malkalypse has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 17, 2005
0.00 posts per day
Posts: 4
Points: 80
   
I'm trying to set up a series of questions, which would look basically like an unordered list. Then, upon clicking a box next to any of the questions, the answer would appear underneath the question. Clicking that same box a second time would cause the answer to disappear. It seems very simple, and I've tried using a couple of different text swapping functions, but for some reason I can't get the answer text to appear in the right places. The script seems to have a hard time keeping track of where things are supposed to go, and it's really irritating me. I need to find a solution ASAP. Thanks!



Back to top Reply with quote
#2   re: A question about swapping text
rlgnak
CZ Super Newbie
rlgnak has been a member for over 20 year's 20 Year Member
usa.gif alaska.gif
Occupation: College
Gender: Male
Status: Offline
Joined: Jun 22, 2004
0.01 posts per day
Posts: 62
Points: 3,367
   
have you tired using div's and hiding and showing them ? thats pretty simple way todo it but im not sure if its exactly what you want




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   
Malkalypse
CZ Newbie
Malkalypse has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Apr 17, 2005
0.00 posts per day
Posts: 4
Points: 80
   
Well, I have it working just fine for one text field, but the problem comes up when I try to make an array of them. It always wants to move the answer box one ahead (i.e. first goes to the second, second to the third..) and I can't figure out how to make them open where they are supposed to.

So far I've just been using spans, I will try enclosing it in a div. Will that prevent me from having to use innerhtml commands? If you could give me a sample, or show me a link to something similar, it would help me a lot. I still have problems with syntax sometimes... :P



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum