thank you ricardo,that was helpful.

On Apr 13, 6:42 am, Ricardo <ricardob...@gmail.com> wrote:
> .get(0) returns a DOM element, not a jQuery object, so the .css method
> doesn't exist in it. Try this:
>
> $("div#photolinks img").eq(0).css("border","5px solid black;");
> or
> $("div#photolinks img:first").css("border","5px solid black;");
>
> On Apr 12, 8:03 pm, dongle <tetri...@gmail.com> wrote:
>
> > nop, there are too get ; one that acts like the javascript index(i)
> > method:http://docs.jquery.com/Core/get
> >  i am referring to that one, :first would not help me here.
>
> > On Apr 13, 12:57 am, Chuck Harmston <cpharms...@gmail.com> wrote:
>
> > > I'm not quite sure what you're trying to do here. The $.get() function is
> > > used to submit an HTTP GET request. See:
>
> > >http://docs.jquery.com/Ajax/jQuery.get
>
> > > Are you trying to return the first response? Try using $("div#photolinks
> > > img:first").
>
> > > Chuck Harmstonhttp://chuckharmston.com
>
> > > On Sun, Apr 12, 2009 at 5:41 PM, dongle <tetri...@gmail.com> wrote:
>
> > > > i am making this(it does not work) :
>
> > > > $(document).ready(function(){
>
> > > >  $("div#photolinks img").get(0).css("border","5px solid black;");
>
> > > > });
>
> > > > if i do this:
>
> > > > $(document).ready(function(){
>
> > > >  $("div#photolinks img").css("border","5px solid black;");
>
> > > > });
>
> > > > it does work, whats wrong?
> > > > thanks

Reply via email to