Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<select id="MyList" style="width: 100px;">
<option>javascript</option>
<option selected>jquery</option>
<option>angularjs</option>
<option>backbonejs</option>
</select>
<script type="text/javascript">
var listbox = document.getElementById("MyList");
for(var count=0; count < listbox.options.length; count++) {
listbox.options[count].selected = true;
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507