Selecting one input field on multi-form page

IanF's Avatar


15 Nov, 2010 11:24 PM

This does not work for me. This is the code I have used attached:
$("#usersearch input") does not target any inputs, while $("input[type=text]") targets them all. Perhaps my selector is not carefully crafted. Ideally I would like the search input field only to be targetted for autosuggestion. Any ideas? Any suggestions?

  1. 1 Posted by Ismailp on 06 Apr, 2011 02:36 PM

    Ismailp's Avatar

    Did you solve this?
    Please share!

  2. 2 Posted by Rohit on 01 Jun, 2011 09:22 AM

    Rohit's Avatar

    If the id way isnt working for you then give the individual element a class like 'nothing' . Then using $('.nothing') ,you can target that element for autosuggest.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • displayUser.php 7.12 KB
  • script.js 162 Bytes

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac