sumithamith / mobiscroll

Automatically exported from code.google.com/p/mobiscroll
0 stars 0 forks source link

Can someone please provide an example using a mobiscroll event #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried the following code to define an event handler for the onClose event. 
Note that test is an input. 

$('#myInput').scroller({preset:'time'}); //works fine
$('#myInput').scroller('onClose', function() {alert ('hi')});

The last line results in an Error: Unknown method.

Can someone let me know the right way to do this.   

Thanks,

Lou

Original issue reported on code.google.com by loupr...@gmail.com on 10 May 2012 at 11:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Nevermind, I figured it out. Here's an example that I got working:

$('#myInput').scroller({preset:'time' , onClose: function(valueText,inst) 
{alert (valueText)}});

Original comment by loupr...@gmail.com on 12 May 2012 at 3:41

GoogleCodeExporter commented 9 years ago

Original comment by diosla...@gmail.com on 16 May 2012 at 10:00