ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題)
今天在用條碼機讀取後送出表單,結果在 IE 網頁一直有問題,而在 firefox 及 Chrome 都沒有問題,查找的結果,才知道,原來用條碼讀取時,會直接送出 Enter,做送出表單的動作,因為我有用 submit 的 value 值,判斷新增或刪除的動作.
測試的結果,在 IE 用 Enter 送出表單,是不會將 submit 的值送出,所以判斷一直出錯,而 firefox,Chrome 用 Enter 送出表單,是會將 submit 的值送出,所以就沒有問題.
解決方法:不要用 submit 值判斷,而是增加一個 <input type='hidden' ....>做為判別.
迴響
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
Hello, Neat post. There is an issue with your site in internet explorer, might check this?
IE still is the marketplace leader and a big portion of other
folks will pass over your great writing due to this problem.
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
Hello, i think that i saw you visited my website thus i came to “return the favor”.I am attempting to find things to enhance my site!I suppose its ok to use some of your ideas!!
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
Awesome article.
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
Cbd oil that works 2020
Hiya! I know this is kinda off topic nevertheless I'd figured I'd ask.
Would you be interested in trading links or maybe guest writing a blog post or vice-versa?
My blog covers a lot of the same topics as yours and I think we could greatly benefit
from each other. If you are interested feel free to shoot me an e-mail.
I look forward to hearing from you! Great blog by the
way! best cbd oil for pain http://tinyurl.com/cbd-oil-that-works-2020 cbd oil that works 2020 http://tinyurl.com/cbd-oil-that-works-2020
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
Awesome! Its truly amazing paragraph, I have got much clear idea concerning from this article.