From c048965e3770fb9910cd0a8dfe639589bfaa9eec Mon Sep 17 00:00:00 2001 From: Markus Gut Date: Fri, 7 Mar 2014 14:34:31 +0100 Subject: [PATCH] Added attribute 'id' to mirrored textarea --- jquery.autosize.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jquery.autosize.js b/jquery.autosize.js index 841fb67..b517419 100644 --- a/jquery.autosize.js +++ b/jquery.autosize.js @@ -8,6 +8,7 @@ var defaults = { className: 'autosizejs', + id: 'autosizejs', append: '', callback: false, resizeDelay: 10, @@ -120,6 +121,7 @@ mirrored = ta; mirror.className = options.className; + mirror.id = options.id; maxHeight = parseInt($ta.css('maxHeight'), 10); // mirror is a duplicate textarea located off-screen that