I'm trying to change the button text of the shiny element and would like to runjs or javascript to do so. I'm not sure how to identify the id "btnGenerate" when running js.
# ui.R
actionLink("btnGenerate", "Generate Data for Export", class="textbutton", style = "height:40px"),
# server.R
#runjs("var today = new Date(); alert(today);")
updateActionButton(session, "button", label = txt) # doesnt work