Skip to content
Discussion options

You must be logged in to vote

Thanks. I couldn't find that question when I was searching. Do you think adding an option to put in a placeholder could be considered for a search textbox enhancement? Here is my solution that also works for future folks looking into this.

website:
  search:
    location: navbar
    type: textbox

format:
  html:
    include-in-header:
      - text: |
          <script>window.onload = function() {document.getElementById("autocomplete-0-input").placeholder = "Search Drugs";};</script>

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@frscott
Comment options

Answer selected by frscott
@mcanouil
Comment options

@dragonstyle
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
websites Issues creating websites themes Related to HTML theming or any other style related issue (like highlight-style)
3 participants