if (nuFormType() == 'edit') {
var curIndex = 2;
// Save initial textarea dimensions (height, width)
$("textarea").each(function () {
$(this).data('height', $(this).height()).data('width', $(this).width());
});
$("textarea").mousedown(function () {
// Set the active textarea on top
this.style.zIndex = ++curIndex;
var t = this;
// Restore dimensions of the other textareas
$("textarea").each(function () {
if(t !== this) {
$(this).height($(this).data('height')).width($(this).data('width'));
}
});
});
}
Last edited by kev1n on Fri Oct 25, 2019 3:55 pm, edited 1 time in total.