Results 1 to 3 of 3

Thread: Search for id.

  1. #1
    Join Date
    Dec 2008
    Posts
    35
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Search for id.

    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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Simple:
    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>
    Could be improved greatly, of course, but that's the core of it.
    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!

  3. #3
    Join Date
    Dec 2008
    Posts
    35
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default

    thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •