JeremyFagis / dropify

Override your input files with style — Demo here : http://jeremyfagis.github.io/dropify
MIT License
973 stars 399 forks source link

Example of isDropified() init() and destroy() #28

Closed galipmedia closed 8 years ago

galipmedia commented 8 years ago

I have tried these like so...

banner = $('#banner').dropify();

banner.destroy(); (does nothing) banner.isDropified(); (says function doesn't exist)

I would like to destroy and re dropify a input each time an event happens.

JeremyFagis commented 8 years ago

Look at this exemple. It seems you forgot something like this after the plugin init: banner = banner.data('dropify');

galipmedia commented 8 years ago

Thanks for the quick reply!

JeremyFagis commented 8 years ago

:+1: