js报错 :有详细错误提示

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

谁遇到过这样的问题,一个页面有5个 input type=”hidden“ jquery报错

阅读 20.4k
3 个回答

I made the same mistake.
I forgot get the hidden value.
I think u just wanner get the value,but forgot use val() method.

这错误提示不都说清楚了么,<input type="hidden"> 不支持 selection 特性

新手上路,请多包涵

var projectInnerId = document.getElementById("projectInnerId").value;

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题