Karl, you're right. It was a different issue. jQuery finds elements
without any problems assuming they exist when the "search" function is
called.
Really appreciate your advice.
On Sep 23, 5:04 am, Tester <[EMAIL PROTECTED]> wrote:
> @Ca-Phun Ung: The line break doesn't exist in the real code.
>
@Ca-Phun Ung: The line break doesn't exist in the real code.
@Karl Rudd: I'll have to do some more research then.
Thanks for all your help!
On Sep 22, 11:20 pm, "Ca-Phun Ung" <[EMAIL PROTECTED]> wrote:
> Karl's suggestion should work... I notice the HTML code you posted has a
> line-break after
Karl's suggestion should work... I notice the HTML code you posted has a
line-break after "b-visibleUrl-", i.e.
class="b-visibleUrl b-visibleUrl-
short"
Is this line-break in your original HTML code? If so that might be the
problem.
On Tue, Sep 23, 2008 at 11:35 AM, Tester <[EMAIL PROTECTED]> wro
Something else is the problem. Two (or any number of) classes
shouldn't make a difference.
I just double checked the example you posted initially and it works as expect.
$('div.b-visibleUrl-short') finds the fire element and not the second.
$('div.b-visibleUrl') finds both elements.
Karl Rudd
Thanks for the suggestion! That's actually what I started with. While
it's perfectly fine in situations with one class assigned to elements
(e.g. ) it doesn't seem to detect it
in my situation with two classes.
On Sep 22, 9:13 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote:
> Remember that jQuery uses
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 co
6 matches
Mail list logo