That's true, but that's exactly how it's supposed to function.

On Sat, Jan 17, 2009 at 3:35 PM, jQuery Lover <ilovejqu...@gmail.com> wrote:

>
> No he is not!
>
> Suppose you have this scenario:
>
> <div id="container">
>       <ul id="menu">
>                <li>Home</li>
>                <li><a href="#">Rules</a></li>
>               <li><a href="#">Pilots</a></li>
>               <li><a href="#">Briefing</a></li>
>               <li><a href="#">IGC</a></li>
>               <li><a href="#">Results</a></li>
>               <li><a href="#">Forum</a></li>
>       </ul>
> </div>
>
> $('#menu li:first a').remove() - will do nothing here, since first li
> has no anchor in it !
>
> ----
> Read jQuery HowTo Resource  -  http://jquery-howto.blogspot.com
>
>
>
> On Sun, Jan 18, 2009 at 1:28 AM, Charlie22 <ch...@post.cz> wrote:
> >
> > Well, you are right, thx for explanation. Now it is clear!!
> >
> > On 17 Led, 21:04, Pedram <pedram...@gmail.com> wrote:
> >> hi Guys , I know what should you do ,
> >> $('#menu li:first a').remove()
> >> this is the code you need , jquery has no problem when you use this
> >> code $('#menu li a:first').remove(); the selector checks each li and
> >> removes the <a> so all of the links will be removed so in your case
> >> your code should look like this $('#menu li:first a').remove();  the
> >> selector selects the first li and removes the <a>
> >> that set,
> >> I am just following john Resig in twitter it seems he is going to
> >> release jquery 1.3.1 maybe he found some little bugs.
>

Reply via email to