Assign value to text field

Hello,
I am new to meteor. I am stuck in a very simple thing. I want to assign some value to a textbox when a event change happens to a list of radio buttons.

My HTML code:

All To Me By Me {{> displaytext}} .

My JS Code:

Template.body.events({
‘change’: function (event) {
console.log(event.currentTarget.value);
}
});

Template.displaytext.helpers({
newValue: function() {
return “ghjghjgjk”;
}
});


I want to log the change function event to newValue function template name display text

Please help me!

Can you please edit your post and wrap your code blocks in triple-backticks, like this:

```
code
goes
here
```

Thanks :slight_smile: