HTMLjQuery 디버깅, 함수를 따라 요소를 전달하는 방법?
<input class="list_item_title mini" name="list_item[title]" size="30" type="text" value="What happens when a user creates a new item?">
JS :
function text_2(e) {
console.log(e.val());
};
$(function() {
$('input.list_item_title').keyup($.debounce(250, text_2));
});
e.val()는 현재 작동하지 않습니다. 어떻게 값을 얻을 수 있도록 함께 입력을 전달할 수 있습니까?
감사
인가 이 하나의 http://code.google.com/p/jquery-debounce/? –
그래, 그거야! http://benalman.com/code/projects/jquery-throttle-debounce/docs/files/jquery-ba-throttle-debounce-js.html – TheExit
"작동하지 않는다"는 것은 무엇을 의미합니까? 그리고 당신은 실제로 무엇을하려고합니까? "입력"? "가치"? 왜 그렇게 막연한가? 귀하의 질문에 문장을 써보십시오. –