1
動的要素を既存の入力要素に追加すると仮定したマスキングjqueryを作成しました。動的要素がJquery Pluginで正しく作成されていない
var link = $('<a title="show" role="link" href="#" class="masker-value">show</a>');
wrapper: function() {
container = $(container)
.attr('ispartial', this.options.partial)
.attr('readyonly', this.options.readyOnly);
$(this.element).wrap(container);
if (!this.options.hideToggle)
$(this.element).after(link);
}
私はページ上の単一の入力を持っている場合は、上記のコードは正常に動作しますが、私は複数の入力がある場合は、link
のみ最後の入力に追加されます。
ありがとう、それが問題を解決しました。 – capiono