<input> How to remove name upon click

Hi All,



I’m having a coders block today, I’m trying to remove “value” from an input field upon click. For the life of me I can’t recall if there is a non-javascript method available.

Anyone got ideas?





The only way you can do is make it type hidden or css display:none



Without JS you cannot target the value, just the input itself.

No you will have to use js method lke document.getElementById(‘elementid’).value = ‘’; . I don’t know of another way.