0

if I have Two icons in my Website, how can i prevent user if he open one of them can't open other if he close the opened icon

enter image description here

1 Answers1

0

You could disable the button when one is clicked on, or you could create a variable that prevents the button from preforming the action it normally preforms. See: Disabling and enabling a html input button

  • i know the concept but i can't know how to do this – Amr Elsayed Jun 21 '22 at 01:13
  • @AmrElsayed Can I know what framework you use? I might be able to pull something from the web – 15CharacterName Jun 21 '22 at 01:17
  • i don't use any framework i built this site with HTML CSS JS only without any framework – Amr Elsayed Jun 21 '22 at 01:45
  • @AmrElsayed Got something. This might help: https://stackoverflow.com/questions/13831601/disabling-and-enabling-a-html-input-button – 15CharacterName Jun 21 '22 at 01:50
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 22 '22 at 14:40