What is the right way of listening of an event generated by a button in index.html?? In index.html:
< button class='btn btn-primary btn-custom w-md waves-effect waves-light' id='.loginButton' style='width: 20%' type='button' onclick='myFucntion()'>Log In< /button>
<script type = 'text/javascript'>
function myFunction() {
document.getElementById('.loginButton').style.color = 'red';
Shiny.onInputChange('.loginButton',1)
}</script>
In server.R:
observeEvent(input$.loginButton,{print("YEAH")})
I does seem to work with input field, but not with buttons.