1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>select last selected test</title> </head> <body> <div id="id1"></div> <div id="id2"></div> <div id="id3"> <ul class="aList"> <li class="item"></li> <li class="item"></li> <li class="item"></li> <li class="item"> <span id="id4"></span> </li> </ul> </div> </body> </html>