Bootstrap 2.3.2 の Bootstrap Filestyle プラグインのファイル フィールドのボタン テキストを変更したいのですが、機能せず、ボタンのテキストはデフォルトのままです。jqueryで要素を置き換えてファイルフィールドを作成し、属性data-buttonText
またはメソッドでテキストを設定しようとしました$("#changeAccountsSourceModal :file").filestyle('buttonText', 'Choose address');
ファイル フィールド
$("#changeAccountsSourceModal .form-horizontal").replaceWith("<input type=\"file\" class=\"filestyle\" data-input=\"true\" data-buttonText=\"Choose address\">");
$("#changeAccountsSourceModal :file").filestyle();