I\'m making a configuration for my web application, try to rendering it to web page. Below is part of my code. I want to the option selected to the config[0].volume
config[0].volume
You can put it in a loop based on the option values.
<% var options = [ "1", "5", "10", "50", "75", "100" ]; for ( var i = 0; i < options.length; i++ ) { var selected = ( config[0].volume == i ) ? "selected" : ""; %>><%=i %><% } %>