markusslima/bootstrap-filestyle

buttonName change doesnt work

Closed this issue · 1 comments

I want to change the button contextual class but its not working
I tried
$(":file").filestyle({buttonName: "btn-primary"});
as well as
<input type="file" class="filestyle" data-buttonName="btn-primary">
FYI: I am using dynamic file input.

Got the solution was using
$(":file").filestyle();
$(":file").filestyle({buttonName: "btn-primary"});

So last statement wasn't getting affected.
Silly mistake