W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2007

[whatwg] additional key attribute in form field

From: Alexander <nav@ciklum.net>
Date: Fri, 6 Jul 2007 14:32:17 +0300
Message-ID: <000b01c7bfc1$4eeac2f0$2121a8c0@kyiv.ciklum.net>

i wonder why there's still no a special 'key' attribute for every form field implemented.

Let's say I have rendered table from query result and one column could be updateable via text field.
And let's say record id field is uniqueidentifier (not integer). I'd like to write the following:

<form ...>
!--- Loop query results ---!
<input type="text" key="{id_value_here}" name="quantity" value="">
<input type="text" key="{id_value_here}" name="quantity" value="">
!--- End of loop ---!


when submitting the form and checking results on server, I'd like to know the 'owner' of every quantity field:

!--- loop via quantity fields ---!
if (quantity.key == 'XXXXXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX') { ... }
!--- end of loop ---!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20070706/80e95b21/attachment.htm>
Received on Friday, 6 July 2007 04:32:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:36 UTC