Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

placeholder text disappear when click in react

placeholder="Search..."
              onFocus={(e) => e.target.placeholder = ''}
              onBlur={(e) => e.target.placeholder = 'Search...'}
 
PREVIOUS NEXT
Tagged: #placeholder #text #disappear #click #react
ADD COMMENT
Topic
Name
1+8 =