Forum Index » Website & Forum Admin/Support » Clear Search Box on click


Display Avatars Sort By:
Nick Garner
(nwgarner) - MLife

Locale: Silicon Valley
Clear Search Box on click on 09/11/2010 17:04:27 MDT Print View

This is a pretty minimal request but, would it be possible to clear the search box when the user clicks inside it to type? I search all the time when considering new gear and I always have to clear that field before I start typing.

Something like this
onclick="document.myform.mytext.value='';"
on the text input field should do it.

Nick

Ken Thompson
(kthompson) - MLife
Re: Clear Search Box on click on 09/11/2010 17:47:05 MDT Print View

If I triple click in the box then start typing the Search BPL goes away.

Edited by kthompson on 09/11/2010 17:47:37 MDT.

Nick Garner
(nwgarner) - MLife

Locale: Silicon Valley
Wicked on 09/12/2010 00:26:16 MDT Print View

That's a good idea, Ken. I'll start doing that.

Nick

Ben Klocek
(klocek-admin) - BPL Staff - MLife
Fixed on 09/13/2010 13:50:39 MDT Print View

Fixed.

Nick Garner
(nwgarner) - MLife

Locale: Silicon Valley
Rock on! on 09/14/2010 17:53:31 MDT Print View

Thanks, Ben!

Ken Thompson
(kthompson) - MLife
Re: Rock on! on 09/14/2010 18:15:37 MDT Print View

Thanks, Ben! +1

That was easy. Wonder what took so long.

Travis Leanna
(T.L.) - MLife

Locale: Wisconsin
Does it work? on 09/14/2010 20:21:30 MDT Print View

Um, it doesn't work for me.

Lynn Tramper
(retropump) - F

Locale: The Antipodes of La Coruna
Re: Does it work? on 09/14/2010 20:48:37 MDT Print View

Works for me with just a single click. Could it be related to web browser?

Travis Leanna
(T.L.) - MLife

Locale: Wisconsin
Re: Re: Does it work? on 09/14/2010 21:04:40 MDT Print View

I'm using Safari. Anyone else?

Ben Klocek
(klocek-admin) - BPL Staff - MLife
Re: Does it work? on 09/16/2010 13:45:48 MDT Print View

You might need to do a force refresh to get the updated javascript file. (Shift+Clicking Refresh does it on a Mac.)

Travis Leanna
(T.L.) - MLife

Locale: Wisconsin
Re: Re: Does it work? on 09/16/2010 13:54:52 MDT Print View

Ah, it works now. Thanks!