I need to call a function when a <div> is clicked in xtemplate. Not haveing any success doing this in architect. Any ideas?

so if a <div id="myDiv">this div gets tapped</div> how to read that event and call a function in architect