|
|
|
|
$(".vid_peregov").live("change", function(){
res_pereg = $(".vid_peregov option:selected").html();
$(this).before(res_pereg);
$('.date').text(date_end);
$(this).before().append('text');
});
|
При таком раскладе, text от select вставляется каждый раз выше самого контейнера, а нужно, чтобы изменялся, а не дополнялся...
Сделал так:
$(".vid_peregov").live("change", function(){
res_pereg = $(".vid_peregov option:selected").html();
$(this).prev('span').text(res_pereg);
$('.date').text(date_end);
$(this).before().append('text');
});
|
| |
|
|
|
|
|
|
|
для: OLi
(13.11.2011 в 18:55)
| | Вопрос другой:
Как в jquery отследить явное нажатие кнопки submit
<input type="submit" value="Найти" name="search_adv" id="search_adv"> | |
|
|
|
|
|
|
|
для: OLi
(13.11.2011 в 19:10)
| |
$('#search_adv').click(function(){...});
| Или что вы подразумеваете под явным нажатием? | |
|
|
|