
Untitled
By: a guest on
Apr 28th, 2012 | syntax:
None | size: 0.56 KB | hits: 14 | expires: Never
Display same class only once with jquery
function callMeOften()
{
$.ajax({
method: 'get',
url : '1.php',
dataType : 'text',
success: function (text) {
$('#updateMe').html(text) ;
}
});
}
var holdTheInterval = setInterval(callMeOften, 500000);
$(".<? echo $userRank['userID'] ?>").appendTo("#statMSG1");
});
<div id="33" class="33">Test</div>
<div id="33" class="33">Test</div>
<div id="45" class="45">Test2</div>
<div id="33" class="33">Test</div>
$("#updateMe").html($(text).filter(".33").eq(0));