hi i was just wondering if someome could complete this code for me basically i have a html5 datalist and i have linked it to this code so when i search for the datalist in my website and click on it, it will go to a different page, i was following my teacher but i didnt get the rest of the code so i havent got a clue i know there isnt much code left to complete, can anyone help me i remember her saying something about location href

[CODE]
$("#Searchoption").on("input",function(e){
var searchval=$(this).val();
$('#Gym option').each(function(index, opt) {
var optionValue = $(this).val();
[CODE]