Looking to remove a specific part of a string enclosed between two characters? For example, replacing all characters between "value="
and " "
with ""
so that the value is always an empty string.
For instance:
"<input value=98 name=anything>"
Would become:
"<input value= name=anything>"
Is there a way to achieve this using JavaScript?