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

Cannot catch mouseup event #106

Open
lyricus opened this issue Nov 12, 2015 · 1 comment
Open

Cannot catch mouseup event #106

lyricus opened this issue Nov 12, 2015 · 1 comment

Comments

@lyricus
Copy link

lyricus commented Nov 12, 2015

Hello, I need to catch mouseup event to update data just after user's final choice.

My code (doesn't alert when mouse key released):

        <script type="text/javascript" charset="utf-8">
        jQuery(document).ready(function () {
            jQuery("#Slider1").slider({
                from: 5,
                to: 500,
                step: 5,
                smooth: true,
                round: 0,
                dimension: "&nbsp;Gb",
                skin: "plastic"
            });

            jQuery("#Slider1").mouseup(function(){
                alert('The mouse key has been released');
            });
        });
        </script>

Could you please help me, what's wrong with it?

@lyricus
Copy link
Author

lyricus commented Nov 17, 2015

Sorry, catched by onstatechange

<script type="text/javascript" charset="utf-8"> jQuery(document).ready(function () { jQuery("#Slider1").slider({ from: 5, to: 500, step: 5, smooth: true, round: 0, dimension: " Gb", skin: "plastic", onstatechange: function( value ){ alert(value); } }); }); </script>

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

1 participant