Jquery select sets the default selected sample code


The code is as follows:

Among them < % % = selectedvalue > Is the value obtained from the background

The $(document). Ready (function () {     $(” # seltype ”). Attr (” value ”, the parseInt (’ < % % = selectedvalue > ’)); })