Thứ Bảy, 13 tháng 7, 2024

JQuery 1.9 and above .size() is not function

Detail: jquery 1.9 above not allow element.size() funtion, instead use .length
Solution: replace .size() to .length
or : this is will return length not change code
$.fn.size = function() {
    return this.length;
}

 



 

0 nhận xét:

Đăng nhận xét