Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to select all text when input box is clicked

<input type="text" onClick="this.select();" value="Sample Text"/>
Comment

select all text of input onclick

<input type="text" onfocus="this.select();" onmouseup="return false;" value="test" />
Comment

PREVIOUS NEXT
Code Example
Html :: add title to navbar html 
Html :: bootstrap nav nav tabs float right 
Html :: html single line comment 
Html :: Text displayed over an image 
Html :: angular material disable radio button 
Html :: bootstrap 4.5.3 
Html :: center text in html 
Html :: toogle class add and remove class 
Html :: javascript wait for image to load 
Html :: html hoover text 
Html :: youtube downloader api 
Html :: SVG <line 
Html :: bootstrap css 
Html :: sign in page in html 
Html :: progress-bar-success bootstrap 4 
Html :: difference between tag and element 
Html :: boilerplate code in html 
Html :: selenium click not working 
Html :: html onkeyup set value 
Html :: serve index.html locally 
Html :: HTML how to create texts in body 
Html :: bootstrap carousel 
Html :: metadata html 
Html :: how to align select in table cell center html 
Html :: bootstrap box 
Html :: input type html 
Html :: vs code html formatter 
Html :: alpinejs submit prevent default 
Html :: Hyperlink to text simple html a tag 
Html :: bootstarp cards 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =