Hi, i was wondering if you could create a script that search a page for id's.
Like the Find in page 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!
Hi, i was wondering if you could create a script that search a page for id's.
Like the Find in page 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!
Last edited by Snookerman; 04-28-2009 at 04:44 PM. Reason: added “Resolved” prefix
Simple:Could be improved greatly, of course, but that's the core of it.Code:<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>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
thanks
Bookmarks