S
sancha
I have a prompt in which the user inputs the search field.
I would like to highlight the places where the search matches.
The problem i am facing is that the page consists of text on the page
as well as text in textboxes and text areas and combo boxes.
I tried using
var searchrange = window.document.body.createTextRange()
and searching within that.
this gives me only the text on the screen and the text areas and not
the text boxes. the text in the range shows the text on alert but
dosent search within that.
alert(searchrange.txt);
shows the values but dosent find them
Please help
Thanks in advance
I would like to highlight the places where the search matches.
The problem i am facing is that the page consists of text on the page
as well as text in textboxes and text areas and combo boxes.
I tried using
var searchrange = window.document.body.createTextRange()
and searching within that.
this gives me only the text on the screen and the text areas and not
the text boxes. the text in the range shows the text on alert but
dosent search within that.
alert(searchrange.txt);
shows the values but dosent find them
Please help
Thanks in advance