0
jqueryがtdを設定しないのはなぜですか?tdテキストを設定しようとしています
$("td")[0].text("hello");
以下、先行する検索:
var array = [1,2,3,4,5,6];
var counter = 0;
while(array.length) {
var index = Math.floor(Math.random()*array.length);
//alert(array[index]); // Log the item
//$('td').index(counter).html(index);
$("td")[0].text("hello");
array.splice(index, 1); // Remove the item from the array
counter++;
//alert(array);
}
JSFiddle https://jsfiddle.net/o3c66fz8/4/