Click here to Skip to main content
16,013,581 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to highlight the textbox border when i click inside the textbox (Like google search)...?
Posted

hi I tried some code for changing border of textbox

HTML
<input type="text" id="txtsearch" onclick="changeborder()" />


JavaScript
function changeborder() {
         document.getElementById("txtsearch").style.borderColor = "red";
     }


Here I'm giving how we change border color whn user click on textbox.

Ig you understand you can try your own code for it.

You want same color of google thn view source of google webpage thn see which color they using its simple.

All the Best
 
Share this answer
 
how to chang textbox bordor color in C# please give me details ,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900