[jQuery] Re: select by onclick text

2007-07-20 Thread seedy
Glen Lipka wrote: > > I whipped up a demo > http://commadot.com/jquery/selectors/contains.htm > > I used EACH(). However, I just feel like I am missing something. > There has got to be a way to do this without an IF statement. > I have done something similar, using .each then checking with r

[jQuery] Re: select by onclick text

2007-07-20 Thread Glen Lipka
I whipped up a demo http://commadot.com/jquery/selectors/contains.htm I used EACH(). However, I just feel like I am missing something. There has got to be a way to do this without an IF statement. Also, I would remiss not to mention. You shouldn't use onclick="". The goal (imho) is to make the

[jQuery] Re: select by onclick text

2007-07-20 Thread seedy
that doesn't seem to be working for me nor does $('form :image').find('[EMAIL PROTECTED] :contains("confirm")]') I am using jquery 1.1.3.1 if that is what you mean by latest version Glen Lipka wrote: > > I think with the latest version you can say > $('form :[EMAIL PROTECTED]') > > Glen > >

[jQuery] Re: select by onclick text

2007-07-20 Thread Glen Lipka
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 subm