Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta

javascript href watch

    • Thread Starter

    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

    $("#Searchoption").on("input",fu nction(e){
    var searchval=$(this).val();
    $('#Gym option').each(function(index, opt) {
    var optionValue = $(this).val();
Do I go to The Streets tomorrow night?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.