NOT WORKING! #112

Closed
adius opened this Issue Dec 3, 2012 · 3 comments

Projects

None yet

3 participants

@adius
adius commented Dec 3, 2012

I don't get it. It's not working. No error, no warning, nothing.
....or i'm I just too stupid? ^^

http://jsfiddle.net/v7czA/

@tzengerink

No need to use jQuery: http://jsfiddle.net/8szJD/

$("#test") returns an array of elements, $("#tests")[0] should work aswell:

var spinner = new Spinner(opts).spin($("#test")[0]);​​​​​​​​​​​​
@fgnass
Owner
fgnass commented Dec 3, 2012

Yes, you need to pass the DOM element, not the jQuery instance: http://jsfiddle.net/v7czA/1/

@fgnass fgnass closed this Dec 3, 2012
@adius
adius commented Dec 3, 2012

Good to know. ^^
Thanks a lot!

But why didn't spin.js throw an error. I had no clue what to do...

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