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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Multiple Select Not Getting Through

    I'm using some multiple select boxes.

    The problem is on Android(not tested IOS) the values selected are not getting pushed back and sometimes change events not firing?

    HTML

    <select name="country" size="12" multiple="multiple" id="country">

    JQuery

    $("#country").click(function()
    {
    country = $("#country").val();
    update();
    });


    All works flawless on desktop.

    Is there a different event I can use?

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    3,020
    Thanks
    56
    Thanked 566 Times in 563 Posts
    you might have better luck listening for the change event - the click event on select elements brings different results in different browsers...

    Code:
    $("#country").change(function(){
    //etc
    as an aside, although I've never interacted with a multiple select on Android I imagine that it might be somewhat unintuitive... is there some reason you don't want to use checkboxes?


  •  

    Posting Permissions

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