INNER CODE UNIT · JavaScript

updateTextareaHeight

smithyhq/sqladmin · sqladmin/statics/js/main.js:580

  const updateTextareaHeight = () => {
    $textarea.css('height', 'auto');
    $textarea.css('height', $textarea[0].scrollHeight + 'px');
  };

  $textarea.on('input propertychange', function () {
    updateTextareaHeight();
  });

  updateTextareaHeight(); // Resize on start
});


// Displays the number of characters in the text field.
$('.chars-count-label').each(function () {
  const $charsCountLabel = $(this);
  if (!$charsCountLabel) return;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…