Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.querySelector('select[name="category"]').onchange=({target:{value}})=>{
- if (value==='all') window.location.search = ''
- else window.location.search = `?category=${value}`
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement