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 :: how to use more than one transform in javascript 
Javascript :: javascript delete first character from string 
Javascript :: how to delete node_modules file 
Javascript :: create infinite loop using for loop in javascript 
Javascript :: add variable inside regex in javascript 
Javascript :: reactjs get checkbox value 
Javascript :: array methods javascript 
Javascript :: js get svg width 
Javascript :: click outside element jquery 
Javascript :: get all the properties of a object in javascript 
Javascript :: expo image picker 
Javascript :: PG::DuplicateTable: ERROR: relation already exists 
Javascript :: set cookie in node 
Javascript :: shadow in react native 
Javascript :: how to call datetime in javascript 
Javascript :: install plotly with react 
Javascript :: javascript alert get text 
Javascript :: adding new sass version 
Javascript :: string array to int array javascript 
Javascript :: try catch in node js 
Javascript :: HashLocationStrategy 
Javascript :: link in angular 
Javascript :: javascript window.history.pushstate 
Javascript :: react flip move 
Javascript :: Toggle on button click in react js functional component 
Javascript :: get id of first td jquery 
Javascript :: react native elevation 
Javascript :: livewire progress indicators javascript 
Javascript :: scrollview refresh 
Javascript :: javascript domcontentloaded 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =