Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

radios.setDisable is not a function #28

Open
binarybit10 opened this issue May 26, 2018 · 2 comments
Open

radios.setDisable is not a function #28

binarybit10 opened this issue May 26, 2018 · 2 comments

Comments

@binarybit10
Copy link

binarybit10 commented May 26, 2018

I tried to use the example. I see an error when I debug. radios.setDisable is not a function. can you show a working example - the below doesn't seem to work.

Also, when I have multiple groups of radios, say radios1, radio2, I want to invoke a function using "onSelect" so that I can get the value of that selected radio group. Can you give a working example. Appreciate your help. Thanks.

$(document).ready(function(){
        var radios = $("#radios").radiosToSlider();

        // Disable input
        radios.setDisable();

        // Enable input
        radios.setEnable();

        // Retrieve value
        radios.getValue();
    });
@tcharlss
Copy link

tcharlss commented Dec 5, 2018

Its seems the functions doesn't return an object, but an array of objects.
The following works for me:

var radios = $('#radios').radiosToSlider()[0];
radios.setDisable();

@beholder4096
Copy link

TY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants