$(document).ready(function() {
$.ajax({
type: "get",
url: "textman.php",
success: function(data) {
$('#textbaz').append(data);
var file = data.split(" ");
var set = 0;
console.log(file);
$('#textbaz').append("<br><input id='textbox' type='text' placeholder='Type it man, your on the clock!'>");
}
});
$("#textbox").keypress(function() {
console.log($("#textbox").val());
});
return false;
})
問題は、#textbox の値をコンソール ログに記録しないことです。そこに何を入力しても効果はありません D: