Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: javascript href

  1. #1
    New Coder
    Join Date
    Jan 2013
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    javascript href

    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]

  • #2
    New Coder
    Join Date
    Jan 2013
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    anyone?

  • #3
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,301
    Thanks
    10
    Thanked 586 Times in 567 Posts
    you don't need javascript to use an html5 datalist...
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%

  • #4
    New Coder
    Join Date
    Jan 2013
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    yes but when the datalist is dsiplayed and then clicked i want it to go to a differnt page


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •