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

Topic RSS Feed

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

Posted: 3/7/2010 1:08:00 PM

Lurker 105 points Lurker
  • Joined on: 11/1/2009 2:23:31 AM
  • 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 8:37:40 PM

Professional 9529 points Professional
  • Joined on: 4/19/2009 1:46:52 AM
  • Posts: 219
answered  Answered

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


Page 1 of 1 (2 items)