jQuery Browser Compatibility (IE)

前端 未结 1 1375
一个人的身影
一个人的身影 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.

     //Incorrect
     //Correct
    

    Chrome seems to be smart enough to fix it and treat the as part of the previous input element, but if you try this jsfiddle in IE, you can see it thinks 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)
提交回复
热议问题