What is the best way to get and select values from a dropdown list (and also in radio) in Meteor. I have created a helper:
Template.categories.helpers({
ca
Template HTML:
Template js:
Template.categories.helpers({
categories: function(){
return ["facebook", "news", "tv", "tweets"]
}
});
Template.categories.events({
"change #category-select": function (event, template) {
var category = $(event.currentTarget).val();
console.log("category : " + category);
// additional code to do what you want with the category
}
});