targetId doesn't seem to work
elsigh opened this issue · comments
Lindsey Simon commented
I did targetId="nano-bar" and then did
$('nano-bar').get(0).go(50);
I see my bar, but $('#nano-bar') returns nada.
Florian Voutzinos commented
In the demo there is a working example of targetId
:
https://github.com/florianv/nano-bar/blob/master/demo.html#L44
https://github.com/florianv/nano-bar/blob/master/demo.html#L62
It works here when using jQuery var secondBar = $('#second').get(0);
.
Lindsey Simon commented
Yes, this is my bad - I thought targetId was going to give me an ID to use CSS to target the bar with somehow. Sorry about that.