对于动态添加到dom的元素,需要使用 on()
on()
$(document).on("keyup",'input[type=text]', function(){ //do your work });