The combined use of these form fields is suitable for modifying some databases Record, and keep the original record the same as when you added it!
select is selected by default, select gets the selected item
Well, I have to admit that my JS is so bad, I can only understand a few lines of code sometimes. Difficulties arise. For example, today it took me nearly half an hour to solve the problem of default selection in the front-end select. The code I finally found is quite simple to solve the problem of selecting and obtaining selected items. It is still very difficult to use this JS to solve the selection of HTML select. It is effective. I think the solution selected is worth keeping and sharing with friends. The code is as follows:
Copy code The code is as follows:
Hope it is useful to you help
http://www.bkjia.com/PHPjc/321946.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/321946.htmlTechArticleThis is the implementation method of extending yibing's select default selection. Copy the code as follows: select name="wuyeleixing" size= "1" option ?php if($myrow[wuyeleixing]==1) echo("selected");? value...
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