Jquery select sets the default selected sample code

  • 2020-03-30 01:39:24
  • OfStack

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 > '));
})


Related articles: