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 :: html multiple checkbox list 
Html :: down chevron unicode 
Html :: disable overscroll html 
Html :: html input size 
Html :: html <a 
Html :: onclick on radio button 
Html :: dart remove html tags 
Html :: html separator line 
Html :: bootstrap 4 6 cdn 
Html :: vertical line in html 
Html :: tailwind css modal 
Html :: html input datetime-local 
Html :: how to link js to html 
Html :: click on toggle device toolbar page is not working 
Html :: how to write html 
Html :: ion input password 
Html :: html disable anchor link 
Html :: publish html website 
Html :: vertical tab bootstrap 
Html :: how to align image in right in html 
Html :: v-on hover 
Html :: negrita html 
Html :: html track 
Html :: index.html favicon.ico 404 (Not Found) 
Html :: bold text bootstrap 
Html :: how to add lazy loading in html 
Html :: how to display the first frame of the video element in html 
Html :: best place to include script in html layout 
Html :: differences between html and xhtml 
Html :: how to add a button bootstrap 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =