Here is my template:
<template name="textGoesHere">
{{#if currentUser}}
<div id="boxdiv">
<textarea id="box">{{user.text}}</textarea>
</div>
{{/if}}
</template>
Here is my Meteor event:
'change #box': function (e) {
Meteor.call('click', $("#box").val());
}
For some reason, this event only gets fired after you click out of the text area after you've changed it's contents. But apparently, the event is suppose to be called when the text area is changed which is the functionality I'm looking for.
Aucun commentaire:
Enregistrer un commentaire