jQuery Browser Compatibility (IE)

自作多情 提交于 2019-12-02 01:32:32
Dennis

You need to close your input tags correctly.

<input type="radio" class="radio" name="Week1" value="New York Jets"></input> //Incorrect
<input type="radio" class="radio" name="Week1" value="New York Jets" /> //Correct

Chrome seems to be smart enough to fix it and treat the </input> as part of the previous input element, but if you try this jsfiddle in IE, you can see it thinks </input> is the next tag. $("foo").next("span") will only select the next element if it is a span.

http://jsfiddle.net/v9GaX/1/

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