Do not use html tag to bind event straightaway. It will cause serious problem. Try to use class or Id
//do something with the element we just passes in we can use dom or jquery to have the access to this element
element.innerHTML = “Hi”
Also, for any ajax call (.get,.post,.ajax), we have to make sure all data we want to pass into a action in a controller should match the parameters of an action. Otherwise, the routing mechanism cannot locate that url.