W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

[whatwg] Idea: pseudo-classes :valid and :invalid for whole form?

From: Rafał Miłecki <zajec5@gmail.com>
Date: Tue, 14 Jun 2011 23:16:56 +0200
Message-ID: <BANLkTim9_uAPrnKKPN95o6pv8Ls40n1NTg@mail.gmail.com>
We already have required attribute and :valid plus :invalid classes,
which are nice. However some may want to display additional warning
when form wasn't filled correctly. Just some single warning, not
specific field-related. Could you consider adding form element class
for such a purpose?

<p id="err">You've to fill all required fields</p>
form:invalid #err {
display: block;

Received on Tuesday, 14 June 2011 14:16:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC