0
Firefox에서이 이벤트는 IE에서 완벽하게 작동합니다. 내 코드는 다음과 같습니다 :jQuery select 이벤트 Firefox VS IE
jQuery().ready(function($) {
$event = ($.browser.msie ? "click" : "select");
$("input[name^='type[']").bind($event, autocompleteType);
$("input[name^='vendor[']").bind($event, autocompleteVendor);
});
function autocompleteVendor() {
alert("vendor");
}
function autocompleteType() {
alert("type");
}
무엇이 잘못 되었나요? 이 문제를 어떻게 해결할 수 있습니까? 그리고 입력 필드를 벗어날 때만 트리거하기 때문에 onChange 이벤트를 사용하고 싶지 않습니다 ...
감사합니다.
무엇 IE 버전을? 자바 스크립트 오류가 보이니? – frikinside
사용중인 jQuery 버전은 무엇입니까? – Satpal