I am trying to use the new html5 template tag to create a semi-general form that can be placed in several use cases without using too much javascript.
Here is a fiddle showing that I have http://jsfiddle.net/684uH/
my goal is to replace the "Name" in the placeholder text with what would normally be found in the tag <content>
a hypothetical example for my point of view would be:
<div id = "hoster">
<span class = "inputPlaceholder">Special Name</span>
</div>
<template id = "im-a-template">
<input type="text" placeholder = <content select = ".inputPlaceholder"></content>>
</template>
Is there a way to do something like this or is it the only way to use javascript to configure it manually?
source
share