Page 1 of 1

Search form and display: none

Posted: Sat Jun 17, 2006 12:04 pm
by alex.barylski
So I have a search FORM by default it's hidden (display: none) or atleast the advanced part is...

I'm curious...by default CSS is used to make the advanced part hidden...and javascript is required to make the display: none to display: block

But if the user has javascript disabled...they won't get access to the advanced section...

Is there any way I can use NOSCRIPT or something to turn the display: none to display: block but only if NOSCRIPT is executed...??? :)

Posted: Sat Jun 17, 2006 12:14 pm
by Oren
You can just use CSS instead of JavaScript. I'm talking about 'hover', but that won't work on Internet Explorer.

Posted: Sat Jun 17, 2006 4:38 pm
by matthijs
Why not turn it around? Use css to show the form, and JS to hide it. If js is disabled for some reason, the form is shown.

Posted: Sat Jun 17, 2006 6:21 pm
by alex.barylski
I ended up doing just that :P