jQuery Browser Compatibility (IE)

前端 未结 1 1374
一个人的身影
一个人的身影 2021-01-22 18:43

Since the source code I am trying to show you is rather long and complex, I am simply going to provide a link to the page I am having troubles with.

http://www.thesporti

相关标签:
1条回答
  • 2021-01-22 18:57

    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/

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