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

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -