PDA

View Full Version : Resolved Search for id.



saynogo9999
12-31-2008, 01:43 PM
Hi, i was wondering if you could create a script that search a page for id's.
Like the Find in page (http://www.dynamicdrive.com/dynamicindex11/findpage.htm) script but instead of searching for strings it does search for id's like <div id="top">.
But i have absolutetly no idea of how to do this :p!

Twey
12-31-2008, 02:08 PM
Simple:
<form onsubmit="document.getElementById(this.elements.id).style.backgroundColor = 'yellow'; return false;">
<input type="text" value="<enter ID>" id="id">
<input type="submit" value="Go">
</form>Could be improved greatly, of course, but that's the core of it.

saynogo9999
12-31-2008, 02:13 PM
thanks