答案 0 :(得分:0)
替换它:
<select name="sort-news" id="sort-news">
<option value="All">All news</option>
<option value="Cat1">Category 1</option>
<option value="Cat2">Category 2</option>
<option value="Cat3">Category 3</option>
</select>
使用:
<button value="All">All news</button>
<button value="Cat1">Cat1</button>
<button value="Cat2">Cat2</button>
<button value="Cat3">Cat3</button>
和此:
$('select#sort-news').change(function(){...
使用:
$('button').click(function() {...