How to execute javascript code when finger is lifted from a slider.

How to execute javascript code when finger is lifted from a slider.

I'm trying to get a code to execute when a user lifts his finger from the slider.
is there a sample code or documentation that can help me do this?
I found instructions on how to do this on the following link, but it did not work:
http://stackoverflow.com/questions/4583083/jquerymobile-how-to-work-with-slider-events

Any help is appreciated

Roy