jQuery
New Wave Javascript


discuss » Tutorial for Designers


Posted: Mon Feb 6 11:04:26 EST 2006
From: Mark Panay <markpanay at gmail.com >

ahhh, ok. If only we could see the output rendered by the JS... :)

thanks

Mark.

On 06/02/06, John Resig <jeresig at gmail.com> wrote:
> Excellent, Mark - I'll be sure to post this to the jQuery blog today.
>
> One quick fix with your code:
> $("dd[label]").append(":");
> actually means "all dd elements that have a label inside of them" whereas:
> $("dd label").append(":");
> means "all label elements inside of a dd element", which is what you
> actually are shooting for.
>
> Both produce similar results, but the generated markup is different.
> The first produces:
> <dd><label>...</label>:</dd>
> the second produces:
> <dd><label>...:</label></dd>
>
> Hope that helps!
>
> --John
>
> On 2/6/06, Mark Panay <markpanay at gmail.com> wrote:
> > I've just posted my first JQuery tutorial. It's aimed at designers and
> > XHTML and CSS types that wouldn't normally consider Javascript as an
> > option to "fix" things. It's very basic but emphasizes the simplicity
> > of JQuery.
> >
> > http://www.markpanay.com/blog.html
> >
> >
> > --
> > Mark Panay
> >
> > www.markpanay.com
> > Jargon Free Web Development
> >
> > _______________________________________________
> > jQuery mailing list
> > discuss at jquery.com
> > http://jquery.com/discuss/
> >
>
>
> --
> John Resig
> http://ejohn.org/
> jeresig at gmail.com
>
> _______________________________________________
> jQuery mailing list
> discuss at jquery.com
> http://jquery.com/discuss/
>


--
Mark Panay

www.markpanay.com
Jargon Free Web Development