HTML select element type is 'select-one' when jQuery is included. Is it a cross browser value?

陌路散爱 提交于 2019-12-04 23:12:41

The type property is actually a DOM property native to form input elements, and doesn't have anything to do with jQuery - you can quickly corroborate this by running this on any website:

console.log(document.createElement('select').type);

For select elements, the two possible values it could take is select-one for normal select elements, ad select-multiple when more than one value is accepted (ie. when a valid multiple attribute is set).

The value should be cross-browser compatible - I could not find any information disputing this.

Reference: https://developer.mozilla.org/en/DOM/select.type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!