Skip to content
Advertisement

How to remove display none in the option field?

I have a problem to remove the display: none; in the option field when I’ve the button.

Below is my coding, first start I have added the display:none in the Only User:

JavaScript

Then I click the Edit button then the style="display:none;" will remove, below is edit button coding:

JavaScript

Below is my button javascript function:

JavaScript

What I have tried:

JavaScript

But it doesn’t work, it show me the result like below:

output1

Hope someone can guide me on how to add the remove style=" display: none;" function in the javascript when I click the Edit button. Thanks.

Advertisement

Answer

You can Make a class like .hide{display:none;}

after making a class in your css you need to Write JQuery code like this

JavaScript

And for show that option you can write

JavaScript

That’s How You can Manage it as per Your Requirement

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement