On Aug 10, 2007, at 11:10 AM, David Williams wrote:
Summary: I am new to JQuery. Is it possible to search for a element
by ID using a wildcard? Something like this where "*" indicates a
wildcard?
$('#*btnTest')
You could try $('[EMAIL PROTECTED]')
Warning, if you have a lot of DOM elements on the page, this could
run really slowly. If you know the id of a containing element, or if
you know the tag name of the element, it would help speed up the DOM
traversal.
Examples:
$('#container').find('[EMAIL PROTECTED]')
$('[EMAIL PROTECTED]')
More info here:
http://docs.jquery.com/Selectors#Supported.2C_but_different
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com