Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   SOS! Не могу перевыбрать после ajax (https://javascript.ru/forum/jquery/16361-sos-ne-mogu-perevybrat-posle-ajax.html)

dopelher 05.04.2011 13:36

SOS! Не могу перевыбрать после ajax
 
$('div.inside>a') после $(document).ready(function(){ выбирается нормально, а после обновления ajax-ом почему-то не выбирается. Если кто подскажет, тому памятник поставлю(виртуальный:-? )
$(document).ready(function(){
    $items = $('div.inside>a');//тут выбирается
...
$('a.renew').click(function(event){  
$('div.inside').html('').load('index.php?AjaxRequest&action=3');//Тут все хорошо
    $items = $('div.inside>a');//ТУТ НЕ ВЫБИРАЕТСЯ хотя div обновился...
/*console.log('itemz', $items);*/
});
});

dopelher 05.04.2011 14:39

решил проблему так
$('a.renew').click(function(event){  
$('div.inside').html('').load('index.php?AjaxRequest&action=3', function(){	$itemss = $('div.inside>a');
});
});


Часовой пояс GMT +3, время: 14:13.