美文网首页
Traps & Tricks

Traps & Tricks

作者: 恒忏 | 来源:发表于2018-01-02 09:57 被阅读0次
IE.formName.radio.value maybe undefined,while chrome maybe blankString.

The best way to overcome it:

  1. always add an item with blank string value,checked,hidden.
  2. $(formName).find('[name=inputName]:checked').val()
    ig.:$(SearchFormMore).find('[name=Lang]:checked').val()

相关文章

网友评论

      本文标题:Traps & Tricks

      本文链接:https://www.haomeiwen.com/subject/wghfnxtx.html