2010-01-23 11 views

risposta

0
$('div#test div:last-child'); 
+0

Ho provato questo e non ha funzionato. La soluzione accettata ha fatto. –

8

Senza jQuery:

var divs = document.getElementById("test").getElementsByTagName("div"); 
var lastChild = divs[divs.length - 1]; 
Problemi correlati