热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

select中option值在不同游览器的取值问题

:select中option值在不同游览器的取值问题:select在ie678中不设置optionvalue值无法用php获取到选中的值,而在ie9以上、firefox、chrome是否设置value值都可以取到值例如:12<optionvalue
select在ie6/7/8 中不设置option value值无法用php获取到选中的值,而在ie9以上、firefox、chrome是否设置value值都可以取到值

例如:

<select name='select_name'>
    <option>1option>
    <option>2option>
select>


<select name='select_name'>
    <option value='1'>1
    <option value='2'>2
select>

第一种情况用$_request['select_name] 在ie6/7/8取到的值为空
第二种情况用$_request['select_name] 在ie6/7/8可以取到值在其他游览器中则不受影响

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介绍了select 中option 值在不同游览器的取值问题,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

  • 推荐阅读
    author-avatar
    FrxxGp
    这个家伙很懒,什么也没留下!
    PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
    Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有