Html invalid value for type
I am working on a piece of html and the code is giving me a " Bad value checkbox for attribute type on element input." Here is the line of code that is throwing the error
<input type="checkbox" id="show-menu" role="button">
<label for="show-menu" class="show-menu">Show Menu</label>
Any help would be much appreciated!!
remove role attribute
<input type="checkbox" id="show-menu" name="yourname" checked>
use any of these
<input name="name" id="id" type="checkbox" checked>
<input name="name" id="id" type="checkbox" checked="">
<input name="name" id="id" type="checkbox" checked="yes">
<input name="name" id="id" type="checkbox" checked="blue">
<input name="name" id="id" type="checkbox" checked="false">
Check this answer for more
链接地址: http://www.djcxy.com/p/56058.html上一篇: 在将WebDriver转换为CheckBox时运行时错误
下一篇: 类型的HTML无效值