![]() |
|
|
|
|
|||||||
| Javascript / Java Applets Are you a JavaScript guy? Do you need help with JavaScript? This is the place to talk about anything related to Java. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm trying to implement an idea for a site of my hosting, but I need help. Can someone show a small example of how by clicking on the input box is highlighted and clicking for a second time is deselect (and change the text)?
|
|
#2
|
||||
|
||||
|
With this line you can do selection of text box:
HTML Code:
onClick="doSelect(this);" HTML Code:
var firstSelection = true;
function doSelect(el){
if( firstSelection ){
el.select();
firstSelection = false;
}
}
|
![]() |
| Tags |
| box, hosting, input, select or deselect, site |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|