Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Expandable Textbox

Avatar

Avatar
Validate 1
Level 1
christophers795
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
christophers795
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
christophers795
Level 1

01-06-2015

My client is interested in the following set up:

1. A user clicks a button and it brings up a hidden text box with information in it.

2. Within the textbox, there is another button that is capable of expanding the text box and shows additional information.

3. When the user is done, the click the button again and the text reverts back to the original view.

Can anyone guide me on how to set this situation up. I'm aware that it would take JS, but I'm rather elementary in the JS area.

1. What events would this required? (Mouseover/click?)

2. How do I keep the text box open and allow it to expand with a button clicked?

Any help would be greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

01-06-2015

Here's my solution for this. You'd want to do some prettying up of the layout before you submit it to anyone, of course.

770322_pastedImage_1.png

Answers (0)