By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

javascript get and expand

P: 3
I would like to add to an existing FAQ page on our company website. All I want to do is to have clickable questions (answers hidden). Click the question and the answer appears! Does anyone have a code for this?
Sep 13 '06 #1
Share this Question
Share on Google+
4 Replies


JohannC
P: 15
I would like to add to an existing FAQ page on our company website. All I want to do is to have clickable questions (answers hidden). Click the question and the answer appears! Does anyone have a code for this?

Use <a>Anchors</a> onclick event you can show the answer by toggling visibility on a div tag. Easy Peasy
Sep 13 '06 #2

P: 3
Use <a>Anchors</a> onclick event you can show the answer by toggling visibility on a div tag. Easy Peasy
thank you so much! Could you give me an example because I don't know about toggling visibility stuff.
Sep 13 '06 #3

JohannC
P: 15
thank you so much! Could you give me an example because I don't know about toggling visibility stuff.
ok , you shoud call a method on the onclick event then do a
document.getElementByID('TheThingYouWantToToggle') .style.visibility=visible; or document.getElementByID('TheThingYouWantToToggle') .style.visibility=hidden;

I Think you should start with checking to see if you can get a method hooked up to the link.
Sep 13 '06 #4

P: 3
Thanks Joanna. i will try this - Ann
Sep 14 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.