Home > Article > Web Front-end > jquery select sets the default selected sample code_jquery
The code is as follows:
where <%=selectedvalue %> is the value obtained from the background
$(document).ready(function(){
$("#seltype").attr("value",parseInt('<%=selectedvalue %>'));
} )