Problems with the value of option in select in different browsers

WBOY
Release: 2016-07-29 08:55:39
Original
1318 people have browsed it

select cannot use php to get the selected value without setting the option value in ie6/7/8. However, in ie9 or above, firefox, and chrome, the value can be obtained whether the value is set or not

For example:

<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可以取到值在其他游览器中则不受影响 
Copy after login
') .addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above has introduced the value problem of the option value in select in different browsers, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Chrome doesn't apply padding to select options Select option padding not working in Chrome