분류 jQuery

Uncaught TypeError: $(...).size is not a function jquery 오류

컨텐츠 정보

  • 조회 851 (작성일 )

본문

jQuery1.8이후부터는 size()메소드 대신에 length 사용


영카트에서


/js/shop.js 내에 관련 코드가 보임


예:

var sel_count = $("select.it_option").size();

var sel_count = $("select.it_option").length;