Javascript jQuery表单插件:序列化单选按钮问题
我有一个简单的表格:Javascript jQuery表单插件:序列化单选按钮问题,javascript,jquery,ajax,internet-explorer,Javascript,Jquery,Ajax,Internet Explorer,我有一个简单的表格: <form class="dataform" method="post" id="settings" action="/"> <input type="radio" name="shareSetting" value="n"/> <input type="radio" name="shareSetting" value="y"/> <input type="button" name="sendSettings
<form class="dataform" method="post" id="settings" action="/">
<input type="radio" name="shareSetting" value="n"/>
<input type="radio" name="shareSetting" value="y"/>
<input type="button" name="sendSettings" value="Store"
class="btn" onClick="javascript:sendSettings();" />
</form>
这在Firefox(3.6和4B)、Chrome 10、Opera 11、Safari 5中运行得非常好,但是——你猜到了——在IE 8中不是这样
IE不会发送单选按钮的内容,尽管浏览器中选择了一个值。似乎由于未知原因,$(“表单设置”)
查找在IE中失败。
如果你们中有人遇到同样的问题,请告诉我你们是如何解决的
非常感谢
检查此项在ie,7,ie8中工作正常该错误是由结构引起的(在我看来似乎是ie中的错误)。最初我有:
<p> / <form> / <dl> / as listed in the question
///如问题中所列
当我将HTML更改为:
<form> / <p> / <dl> / as listed in the question
///如问题中所列
我认为您的错误一定是在没有单击任何单选按钮时发生的。我说的对吗?不,即使选择了其中一个单选按钮,也会出现错误。谢谢,这对我来说是可行的,但不是一个可行的解决方案,因为整个系统以不同的方式工作。
<form> / <p> / <dl> / as listed in the question