<template name="mytemplate"> {{#each work}} <div name="adiv"> <input type='hidden' value={{_id}} id="testid"> <br/> </div> {{/each}} </template>
if use document.getelementbyid('testid'),it lasted value.but want every value.
it's because id value meant unique, change id class , document.getelementbyclassname('testid')
return array
Comments
Post a Comment