I think with the latest version you can say $('form :[EMAIL PROTECTED]')
Totally untested. Running out the door. I would also explore using find() or possible attr() to narrow it down. The ~ means "contains". Glen On 7/20/07, seedy <[EMAIL PROTECTED]> wrote:
I am trying to select all submit, or image buttons on my form that contain a javascript confirm function. The following seem to both return the same thing, any hints? $('form :image') -returns all image buttons, as expected $('form :[EMAIL PROTECTED] :contains("confirm")]') -also returns all image buttons, even those who's onclick event does not contain 'confirm' -- View this message in context: http://www.nabble.com/select-by-onclick-text-tf4117850s15494.html#a11710434 Sent from the JQuery mailing list archive at Nabble.com.