I have several text input that show the value in a collection, as:
<input type="text" id="myval" value={{myvalue}}>
I would like to have a Reset
button that restore the original collection value, after the input text has benn edited. I tried with:
Router.render('mypage')
but it does not work.
I would like to solve this without adding a template helper for each input value.
To render a template , that should be user Blaze.toHTML or Blaze.toHTMLWithData
For your case, you can use following code to re-render again:
$('#urformdiv').html(Blaze.toHTML(Template.mypage));