[jQuery] Re: Using Wildcards to find specific ID on a page

2007-08-10 Thread David Williams
As far a working with the Yes/No radio buttons as generated from the radio button control on this page, the following worked well, and did not appear to be too slow. Fortunetly what I am during my event modifying is a Div tag, and not an item generated by a .net control. For that reason I can bin

[jQuery] Re: Using Wildcards to find specific ID on a page

2007-08-10 Thread David Williams
Wow fast responses to this group, I am impressed. Thanks. Brandon: Yes I used your second suggestion. The full line binds a click event to hide/show a span $('[EMAIL PROTECTED]').click(function() { $ ('#spnShowHideDemo').toggle(); }); Karl: Yes you may correct about the size of the

[jQuery] Re: Using Wildcards to find specific ID on a page

2007-08-10 Thread Karl Swedberg
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 elemen

[jQuery] Re: Using Wildcards to find specific ID on a page

2007-08-10 Thread Brandon Aaron
You could use either of these attribute selectors: - [EMAIL PROTECTED] an E element whose "foo" attribute value ends exactly with the string "bar" - [EMAIL PROTECTED] an E element whose "foo" attribute value contains the substring "bar" So your query would look like this: $('[EMAIL P