General Question

GalaXian's avatar

How to add 2 buttons that do 2 things in JavaScript?

Asked by GalaXian (2points) April 21st, 2019

I have a problem with adding 2 buttons in JavaScript. When I add a button below one shortcut (word) and another button below another shortcut (word) and when you click a button it should show the full form of the shortcut above the button you clicked, but it doesn’t. When I click any of the 2 buttons it shows the full form of one shortcut. Please help me! Thanx.

Observing members: 0 Composing members: 0

2 Answers

funkdaddy's avatar

Can you share some code? Can probably get you on the right track here.

To start, I’d double check whatever you’re using to target the form and make sure it’s right. Some common things might be a class or id, make sure it’s not shared between both and make sure you’re calling the right target for the right button.

GalaXian's avatar

@funkdaddy Thank u so much. I think I will upload the pic of codes tomorrow. Maybe Later.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther