クラス .removeRow の div でボタンを「見つけた」後に、alertify.js を使用したい
$(".removeRow").find("button").click(function(){
alertify.confirm("remove this field?", function (e) {
if (e) {
// user clicked "ok"
$(this).closest(".agrRow").remove();
}
});
});
問題は、アラートを呼び出した後、「これ」の値を失うことです。「これ」をアラート機能に渡すにはどうすればよいですか?