[jQuery] Re: wildcards and onclick

2007-08-13 Thread seedy
that works great thanks!! $('input:[EMAIL PROTECTED]').filter(function() { return $(this).attr('onclick').indexOf('confirm') >= 0; }); I added the [EMAIL PROTECTED] to the selector to prevent the indexOf from failing in the case that there is no onclick attribute. Klaus Hartl wrote: >

[jQuery] Re: wildcards and onclick

2007-08-10 Thread Klaus Hartl
seedy wrote: I do see that the typeof returns 'function'. Does this mean it will never work with *= ? Of interest, if I change that function like so: $('input:image').each(function() { alert(typeof $(this).attr('onclick')); }); It alerts 'string'. Not sure if that is helpful just thou

[jQuery] Re: wildcards and onclick

2007-08-10 Thread seedy
I do see that the typeof returns 'function'. Does this mean it will never work with *= ? Of interest, if I change that function like so: $('input:image').each(function() { alert(typeof $(this).attr('onclick')); }); It alerts 'string'. Not sure if that is helpful just thought it was inte

[jQuery] Re: wildcards and onclick

2007-08-10 Thread Klaus Hartl
Klaus Hartl wrote: seedy wrote: When I try to use a wildcard to search for characters in an onclick attribute it doesnt appear to work. I think this syntax is correct $('input:[EMAIL PROTECTED]') I know there is a bug with onclick in 1.1.3.1, is this somehow related? I assume that you c

[jQuery] Re: wildcards and onclick

2007-08-10 Thread Klaus Hartl
seedy wrote: When I try to use a wildcard to search for characters in an onclick attribute it doesnt appear to work. I think this syntax is correct $('input:[EMAIL PROTECTED]') I know there is a bug with onclick in 1.1.3.1, is this somehow related? I assume that you can't just parse the con