Jquery错误-Failed to read the 'selectionDirection' property

Posted 笑笑~上善若水

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jquery错误-Failed to read the 'selectionDirection' property相关的知识,希望对你有一定的参考价值。

jquery提示错误

Uncaught InvalidStateError: Failed to read the ‘selectionDirection‘ property from ‘htmlInputElement‘: The input element‘s type (‘hidden‘) does not support selection.

接锅侠,发现点击按钮没反应,又在支付宝里面调试页面,用spy-debug调试不了。

最后只能用vconsle,发现里面的功能也点击不了。但还能看出报什么错。

最后发现,代码里面有个地方少写了。

原代码:
$("body").find(".expressSelect2 option");

改后的代码:
$("body").find(".expressSelect2 option").val();

 

但还是跟select 有关。因为获取的是select的值  

 

以上是关于Jquery错误-Failed to read the 'selectionDirection' property的主要内容,如果未能解决你的问题,请参考以下文章