Clear or Reset Search field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lesliekirk
    Super Moderator











    • Aug 2008
    • 9296

    #1

    Clear or Reset Search field

    How do I get the search field to reset to the placeholder content after the search results have been displayed? You can see an example here.

    The old site would clear the field and the store owner needs this same "feature" in the new version.


    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: X | Facebook | Pinterest
  • Matt Zimmermann
    Mega Mivite










    • Apr 2008
    • 2482

    #2
    Hi Leslie,

    Chances are you have the value of the search input set to &mvte:global:search;. If you remove that, you should see the results you are after.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment

    • lesliekirk
      Super Moderator











      • Aug 2008
      • 9296

      #3
      Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      Chances are you have the value of the search input set to &mvte:global:search;. If you remove that, you should see the results you are after.
      Thanks - I was just about to post that I fixed it. I used what was in the old site code, it used an on blur
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: X | Facebook | Pinterest

      Comment

      Working...
      X