Skip to content
Advertisement

Remove File and value from Javascript

May I ask about how can I remove the value of q , when the class .close is clicked? Here with my source code:

JavaScript

Advertisement

Answer

If I understand the question correctly you need to remove the value of q only from HTML. The easiest way is to wrap the value with the span tag.

JavaScript

Let me know if you needed something else or injected HTML can’t be modified, I’ll correct the answer.

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