weixin_33691700 2011-09-02 00:03 采纳率: 0%
浏览 41

表单提交问题IE9 + Ajax

I have a form that is served via Ajax from the server when a button is clicked. It pops up in a jquery dialog.

<form onsubmit="hideModal();return getAJAX(this);">
    <input type="hidden" name="action" value="updateUserNotes">
    <input type="hidden" name="userid" value="20312">
    <hr/>
    <B>Flags:</B><BR/>
    <input type="radio" name="flag" value="none" checked> <img src="images/icons/grey_flag.png"> No Flag<BR>
    <input type="radio" name="flag" value="green"  > <img src="images/icons/flag_green.png"> Green Flag<BR>
    <input type="radio" name="flag" value="red" > <img src="images/icons/flag_red.png"> Red Flag

    <B>NOTES:</B><BR>
    <textarea name="usernotes" cols="80" rows="10"></textarea>
    <input type="submit" value="Save Notes">
</form>

This is the code that my script sends back to display the form. With the HR in there, the form will not submit when you click "save notes". It does not throw a javascript error, it simply does not submit.

If I remove the horizontal rule the form submits 100% fine.

Anyone know what might be causing this? It only appears to affect IE9. I cannot replicate it in Chrome or Firefox or earlier versions of IE9.

I think it has something to do with IE9's strictness, but I can't figure out how the horizontal rule is messing anything up.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 三相直流充电模块对数字电源芯片在物理上它必须具备哪些功能和性能?
    • ¥30 数字电源对DSP芯片的具体要求
    • ¥20 antv g6 折线边如何变为钝角
    • ¥30 如何在Matlab或Python中 设置饼图的高度
    • ¥15 nginx中的CORS策略应该如何配置
    • ¥30 信号与系统实验:采样定理分析
    • ¥100 我想找人帮我写Python 的股票分析代码,有意请加mathtao
    • ¥20 Vite 打包的 Vue3 组件库,图标无法显示
    • ¥15 php 同步电商平台多个店铺增量订单和订单状态
    • ¥17 pro*C预编译“闪回查询”报错SCN不能识别