markusslima / bootstrap-filestyle

jQuery customization of input html file for Bootstrap Twitter

Home Page:http://markusslima.github.io/bootstrap-filestyle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

javascript options not working

aegued opened this issue · comments

The plugin work with the data- in the input, but in the option of javascript not working.
For example, i copy and paste in my code:
$(":file").filestyle({buttonText: "Find file"});
so, this not working, but if i do this:

not problem.

Regards

I found the solution, i write the code inside the $(document).ready(function() { }); .
I pull the code out of it and this it and then it worked.

Sorry but, is the habit of doing so.