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

[whatwg] Prefilling repetitions

From: Jeff Cutsinger <jeff@cutsinger.org>
Date: Tue, 13 Mar 2007 13:16:13 -0500
Message-ID: <45F6EA6D.4000905@cutsinger.org>
Elliotte Harold wrote:
> However it strikes me as funny that I can't prefill a repeating form. e.g.
> 
> <div id="observation" repeat="template">
>   <label>Species:
>     <input type="text" name="species[observation].name"
>            data="http://www.example.com/values.html"/>
>   </label>
> </div>
> 

I could be wrong but you should be able to do this:
<div id="observation" repeat="template">
  <label>Species:
    <input type="text" name="species[observation].name"
           data="http://www.example.com/values[observation].html">
  </label>
</div>

Which seems like it would work.
Jeff Cutsinger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jeff.vcf
Type: text/x-vcard
Size: 178 bytes
Desc: not available
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20070313/719bb00c/attachment.vcf>
Received on Tuesday, 13 March 2007 11:16:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:53 UTC