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 interesting. 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 can't just parse the content of the onclick attribute, > as in this special case what's in there becomes a javascript expression > and not simple text... > > Try: > > $('input:image').each(function() { > alert(typeof this.onclick); > }); > > It should alert "function". > > > > --Klaus > > > -- View this message in context: http://www.nabble.com/wildcards-and-onclick-tf4250599s15494.html#a12098534 Sent from the JQuery mailing list archive at Nabble.com.