html - Linking using href with filter value -


i have section on page filter based on drop down list selection. select commands are:

<select id="dropdown">          <option class="filter" value="all" selected>all types</option>          <option class="filter" value="type1">type 1</option>          <option class="filter" value="type2">type 2</option>          <option class="filter" value="type3">type 3</option> </select>  

i want link filtered types of page, example link titled “type 1” direct “page.html” filter value ”type1”, link titled “type 2” direct “page.html” filter value ”type2”, etc. believe not possible use href link, there other way?

i'm not sure mean filters, if mean parameters, can use javascript:

document.getelementbyid('dropdown').onchange = function() {     window.location.href = 'page.html?filter='+this.value; }; 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -