js simply implements the select jump function: the code is as follows
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <div> <select> <option href="http://jichang.gongchang.cn/pro-161264/">All categories of goods</option> <option href="http://jichang.gongchang.cn/">Ordinary lathe</option> <option href="http://jichang.gongchang.cn/">Ordinary lathe</option> <option href="http://jichang.gongchang.cn/">Ordinary lathe</option> <option href="http://jichang.gongchang.cn/">Ordinary lathe</option> <option href="http://jichuang.gongchang.cn/brand/">Swivel lathe</option> </select> </div> <script type="text/javascript" src="../js/jquery-1.11.1.min.js"></script> <script type="text/javascript"> $(function(){ var $body = $('body'); $body.on('change', 'select:has(option[href])', function(e) { var _this = $(this), _href = _this.find('option:selected').attr('href');//Get the address to be redirected location.href = _href; //Jump}) }) </script> </body> </html>