JQuery: Selector that contains some text, but doesn't contain others

Posted by BPotocki on Stack Overflow See other posts from Stack Overflow or by BPotocki
Published on 2010-04-14T17:11:31Z Indexed on 2010/04/14 17:13 UTC
Read the original article Hit count: 189

Sorry if this question is mind numbingly easy to answer, but I'm a bit new to JQuery and I have a tight deadline.

I am looking for a selector for textbox elements that have this format:

id = "FixedName_#"

"FixedName" will always be "FixedName", but I only want to find elements where the # is positive. So I would want to find "FixedName_1", and "FixedName_2" for example, but skip over "FixedName_-1" and "FixedName_-2".

Thanks!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about selectors