$(“#someDiv”).attr(“scrollHeight”) not working in jquery-1.6.1

前端 未结 1 2084
小鲜肉
小鲜肉 2021-02-19 00:51

$(\"#someDiv\").attr(\"scrollHeight\") works in jquery 1.3.2 for all browsers. But on updating to jquery 1.6.1, it only works in I

相关标签:
1条回答
  • 2021-02-19 00:56

    jQuery 1.6 introduced .prop and changed the meaning of .attr.

    Read all about it.

    (Always worth checking the documentation first; the page for .attr talks about this too.)

    0 讨论(0)
提交回复
热议问题