[whatwg] Prefilling repetitions

Jeff Cutsinger jeff at cutsinger.org
Tue Mar 13 11:16:13 PDT 2007


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-0001.vcf>


More information about the whatwg mailing list