2013-02-11 4 views
0

나는이 Example과 함께과 같이 데이터베이스에서 세부 정보를 가져 오기 위해이 Example에서 jquery 자동 완성 콤보를 사용했습니다.onchange 이벤트가 jQuery 자동 완성 콤보 상자에서 작동하지 않습니다.

콤보 상자는 자동 완료없이 으로 잘 작동합니다. 자동 완성 기능이 활성화되면 콤보 상자의 onChange Event에 세부 정보가 생성되지 않습니다.

<select name="sitemCode" id="itemCode" onchange="showItem(this.value)"> 
<option value = " 0 ">Select Item Code</option> 

어떻게 내가 자동 완성 jquery와 함께 작동하게 할 수 있습니까? 제발 도와주세요

답변

0

이렇게 해보셨습니까 ??

$('#itemCode').change(function() { 
    var itemCode= $("#itemCode option:selected").text(); 
    showItem(itemCode); 
    }); 
관련 문제