Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

clear textbox js

   function name()
   {  
   document.getElementById('elementid').value = "";
   }
Comment

how to clear textbox value in js

<input type="text" value="A new value" onfocus="if(this.value=='A new value') this.value='';">
Comment

how to clear textbox in javascript

jQuery("#searchField").focus( function()
{ 
  $(this).val(""); 
} );
Comment

PREVIOUS NEXT
Code Example
Javascript :: interval in javascript 
Javascript :: expo app.json 
Javascript :: syntax of the ternary operator 
Javascript :: page scrolling react js 
Javascript :: function 
Javascript :: js concate map 
Javascript :: Promise.all() with async and await to run in console 
Javascript :: round to nearest step 
Javascript :: null vs undefined 
Javascript :: Angular JS Interpolation 
Javascript :: Ternary Expressions in JavaScript 
Javascript :: how to hide a button in react 
Javascript :: react native asyncstorage setItem example 
Javascript :: npm whatsapp api 
Javascript :: var = {} js 
Javascript :: search in array javascript 
Javascript :: how to link to a different component in reactjs without react router 
Javascript :: import module in ES6 
Javascript :: get the last element of array javascript 
Javascript :: props 
Javascript :: add new element to existing json object 
Javascript :: what is palindrome 
Javascript :: Force users to update your application in React Native 
Javascript :: google app script 
Javascript :: useReducer Hooks 
Javascript :: javascript reverse array and separate by spaces 
Javascript :: react native store sensitive data in redux 
Javascript :: forget mot de passe api nodejs mongodb example 
Javascript :: MERN stack implementing Sign in with Google. 
Javascript :: neo4j get first 3 nodes 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =