Jump to content
php.lv forumi
  • 0

.each


anonīms

Question

$(function(){

$(".last_div").each( function() {
 alert(1);
});
});

 

html kodā ir divi <div class="last_div"></div>.

Kāpēc neizlec neviens alerts? .js kods atrodas pareizajā vietā un pārējie kodi aiz šīm rindām strādā. firebug kļūdu neuzrāda.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...