Click Event Not Working

This click event is not working -

Template.images.events({
		'click .js-image':function() {
			console.log("hello");
		}
	});

You need to give us more info before we are able to help you. Please provide:

  • The template itself
  • If file is loaded
  • What you β€˜can’ verify
  • What you already tried
1 Like

Try like this syntax, copy and paste from my code

Template.game.events({
	
	'click .ui_button_toggle_hud'(event){ 
              ...........

That syntax is equivalent to the first one. Therefore it should make no difference.
As Cloudspider properly stated, we cannot help much without more information.

1 Like