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: > > > Maybe we can build our own custom filter then: > > $('input:image).filter(function() { > return $(this).attr('onclick').indexOf('confirm') >= 0; > }); > > > --Klaus > > > -- View this message in context: http://www.nabble.com/wildcards-and-onclick-tf4250599s15494.html#a12125440 Sent from the JQuery mailing list archive at Nabble.com.