jQuery: set selected value of dropdown list?

后端 未结 3 769
我在风中等你
我在风中等你 2021-02-01 02:47

What\'s wrong with this code?

jQuery

$(document).ready(function() {
    $(\"#routetype\").val(\'quietest\');
)};

HTML

&         


        
3条回答
  •  渐次进展
    2021-02-01 02:57

    You need to select jQuery in the dropdown on the left and you have a syntax error because the $(document).ready should end with }); not )}; Check this link.

提交回复
热议问题