flippant.js icon indicating copy to clipboard operation
flippant.js copied to clipboard

Plays nice with jQuery?

Open gotjosh opened this issue 12 years ago • 2 comments

While trying to use Flippant on my project I quickly realized that if I passed a $('#my-id') as the front part it wouldn't work due to using classList and a few other methods that are only available to the element.

Is this intended? Perhaps is there something I could help with to make this jQuery Friendly?

gotjosh avatar Nov 01 '13 23:11 gotjosh

+1

bauschri avatar Nov 18 '13 13:11 bauschri

I think you could easily change $('#my-id') to document.getElementById('my-id') Isn't that enough?

bitIO avatar Nov 29 '13 23:11 bitIO