Your page is looping because evertime you load the page, selected value is "class-view" since it is the first option in the select list. Try doing something like this using jquery.
$(document).ready(function(){
$("#rn-dd").change(function(){
var selectedVal = $(this).val(); // Value of the selected option
// Redirect to your page accordingly
});
});
You can add a data-href
attribute to each option so you can redirect to that location when the change has happened.So your html should look like this
<select class="rn-dropdown" id="rn-dd">
<option value="class-view" data-href="a.html">class view</option>
<!-- Students Populate Here -->
<option id="s-00586" data-href="b.html" value="s-00586">Student S00586</option>
<option id="s-00587" data-href="c.html" value="s-00587">Student S00587</option>
<option id="s-00588" data-href="d.html" value="s-00588">Student S00588</option>
<option id="s-00589" data-href="e.html" value="s-00589">Student S00589</option>
<option id="s-00590" data-href="f.html" value="s-00590">Student S00590</option>
</select>
Now you can get the href data attribute value for the selected option. So the complete solution would be like this,
$(document).ready(function(){
$("#rn-dd").change(function(){
document.location.href = $(this).find(":selected").data("href");
});
});
You can find more about data attribute from here Jquery Data attribute