clear input field value javascript
<!--Clearing input field in javascript-->
<input type="text" value="Blabla" id="myInput">
<button onclick="clear()">Clear input field</button>
<script>
function clear(){
document.getElementById('myInput').value = ''
}
</script>
Also in HTML:
- html table stack overflow
- javascript in html
- resize textbox html
- how to create a professional website
- HTML Character Entities
- how to add a paragraph in html
- chrome mobile color address bar
- vue v-model
- html select list
- html to exe
- html ecrire en gras
- a tag
- html input dropdown
- how to set diferent images in html through js
- search/find content ftp html
- spring boot banner generator
- how to pass data from javascript to html
- mobile prevent zoom
- html for an image with a link
- Impossible to create the root directory "/var/www/html/laraship-subscription/storage/app/public/media/user_v1oz1Yz27j/26
- How to pass variables from js to html node
- html hidden
- how to do animation with pure javascript with no html
- how to stop download option in video tag of HTML