Interesting but it [ $('#menu li a:first') ] does not work in 1.3 !!! ---- Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Sun, Jan 18, 2009 at 12:18 AM, Charlie22 <ch...@post.cz> wrote: > > hmm, it seems as my stupidity :-) so there is no need use element <li> > in this case. Originally I had code $('#menu li a:first'), but it > works only under 1.2.6, not under 1.3 Am I correct? > > On 17 Led, 20:09, jQuery Lover <ilovejqu...@gmail.com> wrote: >> Exactly, just like I wrote!!! >> >> > $('#menu a:first').remove(); >> >> ---- >> Read jQuery HowTo Resource - http://jquery-howto.blogspot.com >> >> On Sun, Jan 18, 2009 at 12:05 AM, Nic Luciano <nic.luci...@gmail.com> wrote: >> > The reason it's not working is you're using the first-child selector. What >> > you're doing by using that is selecting every anchor that is the first >> > parent of it's child (which is all of them since they lie immediately under >> > a list item). The selector you want to be using is just first (a:first), >> > which will return the first matched element on the document only. >> >> > Cheers- >> > Nic >> >http://www.twitter.com/nicluciano >> >> > On Sat, Jan 17, 2009 at 1:56 PM, Charlie22 <ch...@post.cz> wrote: >> >> >> IE7, FF3, GoogleChrome..ok, check this page >> >>http://83.240.47.84/skyrace2/del.html >> >> >> On 17 Led, 19:41, jQuery Lover <ilovejqu...@gmail.com> wrote: >> >> > What browser are you using? I am using firefox 3.0.5 and jquery 1.3 >> >> > and it is working!!! >> >> >> > I have just triple checked... >> >> >> > $('#menu a:first').remove(); >> >> >> > removes the first anchor in the list. >> >> >> > ---- >> >> > Read jQuery HowTo Resource - http://jquery-howt.o.blogspot.com >> >> >.