【发布时间】:2013-06-03 02:51:41
【问题描述】:
我使用 ajax 加载我在 php 中的一些代码
function loadNewcomment(divID) {
$.ajax({
url: templateUrl+"/enternote.php",
cache: false,
success: function(html){
$("#"+divID).append(html);
}
});
}
我在 $(document).ready(function(){ }); 中有这段代码但它没有检测到新的 DIV,我该如何重新加载那部分代码?
$keyPressed = 0;
$(".note-field").keyup(function(event){
var thisString = $(this).val();
$keyLength = thisString.length;
$rowCount = Math.ceil($keyLength/40);
$currentRow = $(this).attr("rows");
if($currentRow < $rowCount){
$(this).animate({rows:$rowCount},50);
}
【问题讨论】:
标签: jquery ajax html dynamic reload