Remember that jQuery uses CSS syntax for selectors. So, just like in CSS to select a element with a particular class you add a "." to the front of the class name.
In this case: $('div.b-visibleUrl-short') Karl Rudd On Tue, Sep 23, 2008 at 11:25 AM, Tester <[EMAIL PROTECTED]> wrote: > > My code looks like this: > ================================ > <div class="a-webResult a-result"> > <div class="b-webResult b-result"> > <div class="b-title">Title</div> > > <div class="b-visibleUrl b-visibleUrl- > short">www.learningjquery.com</div> > <div class="b-visibleUrl b-visibleUrl-long">www.learningjquery.com/ > 2007/02/</div> > > </div> > </div> > ================================ > I can't modify HTML and need to access elements "b-visibleUrl-short." > Tried: > > - $('[EMAIL PROTECTED]') and > - $("div[class$='b-visibleUrl-short'") > > but nothing seems to work. > > Any ideas would be appreciated. Thanks! >