Skip to content

Check if is 'checked' #2

Open
Open

Description

@Filipizaum

I was using it with a script with jQuery to check which elements are selected.

The code I used is the following:

function getSelectedItems() {
    var aux = [];

    items.forEach(function(el, i){
        if($(el).parent().hasClass('selected')){
            aux.push(el.val());
        }
    });
    return aux;
}

This works great at my notebook, but on mobile it does not return the selected elements.

I inspected the elements on the mobile device following that steps:
https://developers.google.com/web/tools/chrome-devtools/remote-debugging

I noticed that the "active" class is not set in the checked element.

Can you tell me what would be the way to check it globally or create a feature to support it?
I appreciate it!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions