6

I have a simple textInput:

textInput(inputId = "input1", h4("Name"), value = "Your name")

How can I set an onclick event so that the text completely disappears when the user clicks on the text field? Is this possible via shinyjs::onclick?

wipuyotu
  • 63
  • 2

1 Answers1

3

you can use placeholder option in textInput

textInput(inputId =  "input1", label = h4("Name"), placeholder = "Please provide your name...")
A. Suliman
  • 12,923
  • 5
  • 24
  • 37