html: Can there be a tag in the option tag?
<select onchange="window.location=this.value"> <option value="链接">1</option> <option value="链接">1</option> <option value="链接">1</option> </select>
Your purpose is to jump to the page
1: Jump to the page
<select onchange="window.location=this.value"> <option value="链接">1</option> <option value="链接">1</option> <option value="链接">1</option> </select>
2: JumpAnchor
<select onchange="window.location.href=this.value"> <option value="链接">1</option> <option value="链接">1</option> <option value="链接">1</option> </select>
The above is the detailed content of html: Can there be a tag in option tag?. For more information, please follow other related articles on the PHP Chinese website!