我在INSERT INTO Ink ( DesignID, Mesh, Ink )
SELECT * FROM
(
SELECT DesignID, Mesh1, Ink1
FROM Design
WHERE Ink1 IS NOT NULL
UNION ALL
SELECT DesignID, Mesh2, Ink2
FROM Design
WHERE Ink2 IS NOT NULL
UNION ALL
SELECT DesignID, Mesh3, Ink3
FROM Design
WHERE Ink3 IS NOT NULL
)
中有这样的输入:
<form>
通常,当我尝试提交表单时,它会在复选框下方显示如下错误:
但是,当我在CSS中将此行赋予它时,该错误不再出现:
<input type="checkbox" required>
有什么办法可以使它看起来不像复选框,但仍会提示错误?理想情况下,我不想使用任何其他JavaScript。