Loading ...

Selecting last div control inside the parent div with jquery

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  getting started / general asp.net   » Selecting last div control inside the parent div with jquery

Selecting last div control inside the parent div with jquery

Posts under the topic: Selecting last div control inside the parent div with jquery

Posted: 3/7/2010

Lurker 105  points  Lurker
  • Joined on: 11/1/2009
  • Posts: 21

Hi,

I have a collection of divs inside a parent div.

var divs=$(div#divCities).find(div);

Now I need to select the last div control . Please help .


Posted: 3/9/2010

Guru 16813  points  Guru
  • Joined on: 4/19/2009
  • Posts: 490
  Answered

$(div#divCities).find(div:last);


Page 1 of 1 (2 items)