The original code didn't worked for me either, so I modified it and now it works:



<script type="text/javascript">
var dropdown = document.getElementById("cat");
...