Hello, All
I don't know if this one has been discussed before but I think someone must have raised it...
I'm trying to put together a filter menu for a picture gallery using 3 drop-downs. The user selects the values of choice and then hits the submit button at which point the page reloads showing only the filtered results.
I want to do this by building a query string with the values from the 3 drop downs. I have an idea I may need to use jScript to do this but I'm not sure how to put it together.
My understanding tells me I can grab the values from the drop downs using something like this...
var ddval1 = $("#dropdown1").val();
var ddval2 = $("#dropdown2").val();
var ddval3 = $("#dropdown3").val();
Then I can compile the query string with code like this...
document.location.href = './index.php' + ddval1 + ddval2 + ddval3;
But where it all goes and how the submit button comes into things has me scratching my head!
If anyone has some advice I'd be most grateful.
:0)
Perch