Click to See Complete Forum and Search --> : Search form options


Mouse77e
01-18-2006, 09:33 AM
Search form options

Hello all… I am looking for an answer to a simple(ish) question.

I have a form on my site which is made of drop down lists. List one can be used to search on its own. List two needs to be used with list one, it cannot be used as a search parameter on its own.

When I am writing my form I would like to make box two inaccessible until box one has been used. I have seen this done but how?

In the example I saw recently the second box was greyed out… is this CSS, Java, Magic?

Please does anyone know???

Mouse

P.S. anyone ever written the PHP search script for this sort of job???

ray326
01-18-2006, 05:16 PM
Hey, it's ALL magic isn't it? :) Establish the second select as disabled then enable it with an onchange handler in the first select.