This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Onclick / onblur behaviour

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Onclick / onblur behaviour

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13165
    therapytherapy
    Participant

    Dear Sir,

    First of all, I would like to thank you for this beautiful piece of code : your ajax
    search engine is impressive ! I love it ! 🙂

    I have just a small question : I would like the dummy “Search here…” text to disappear
    when the user click on the form (just before starting to type).

    A kind of “onfocus” / “onblur” trick, like it’s explained here :

    https://www.experts-exchange.com/questions/24621734/Forms-on-click-remove-text-BUT-then-replace-it.html

    Is it possible in CSS ?

    It could be a nice option for your soft too 🙂

    I wish you a very nice week-end,

    Kind regards,

    Rémi

    #13167
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Rémi,

    Thank you very much for your kind words!

    It is actually possible with a few very simple CSS rules. Thus custom CSS should do the trick for you:

    [html]input.orig:focus::-webkit-input-placeholder { color:transparent !important; }
    input.orig:focus:-moz-placeholder { color:transparent !important; }
    input.orig:focus::-moz-placeholder { color:transparent !important; }
    input.orig:focus:-ms-input-placeholder { color:transparent !important; }[/html]

    I hope this helps 🙂

    #13168
    therapytherapy
    Participant

    Awesome ! You’re the man !

    I will give you 5 stars on codecanyon !

    Thank you so much Ernest,

    Kind regards,

    Rémi

    #13170
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #13171
    therapytherapy
    Participant

    Yes please, you can close.

    All the best Ernest,

    Rémi

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Onclick / onblur behaviour’ is closed to new replies.