Click here to Skip to main content
15,936,903 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a web page containing 100 records/rows , i want to add one text field in the webpage using which i can search a particular record by name or any other uniqueness..
If that input text is present in web page then it row should be highlighted
[no name] 19-Mar-13 11:26am    
And your question is what? What have you tried? What is the problem?
Sergey Alexandrovich Kryukov 19-Mar-13 11:58am    
Now I see that my answer to the question was an accident. :-)
Non-questions deserve removing immediately...
Sergey Alexandrovich Kryukov 19-Mar-13 11:57am    
Yes, did you try to find it? Looks trivial...

1 solution

This operation is actually called "selection".

Use the method select of <input type="text"> element:[^].
myTextBox = document.getElementById(elementId); // elementId should be a string according to the ClientID value; // all text is selected here

See also:[^].

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