I have this code
product.jade
a#home(href="{{pathFor 'home'}}") Home
input#qty.form-control(type="text", value="1", name="qty")
product.coffee
Template['product'].events
'click #home': (e, template) ->
text = template.find("#qty")
???
return
How do I set the value of qty to 5 every time home is click? I tried to used text.value(“5”) but error occurred
Uncaught TypeError: string is not a function.
Any ideas?