Title: Increase Decrease Size of Comment Box
Last modified: August 18, 2016

---

# Increase Decrease Size of Comment Box

 *  [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/increase-decrease-size-of-comment-box/)
 * Is it possible to increase and decrease the size of the comment box using Javascript?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [ryanbrooks](https://wordpress.org/support/users/ryanbrooks/)
 * (@ryanbrooks)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/increase-decrease-size-of-comment-box/#post-256795)
 * Sure is.
 * `function increaseNotesHeight(thisTextarea, add) {
    if (thisTextarea) { newHeight
   = parseInt(thisTextarea.style.height) + add; thisTextarea.style.height = newHeight
   + "px"; } } function decreaseNotesHeight(thisTextarea, subtract) { if (thisTextarea){
   if ((parseInt(thisTextarea.style.height) - subtract) > 50) { newHeight = parseInt(
   thisTextarea.style.height) - subtract; thisTextarea.style.height = newHeight 
   + "px"; } else { newHeight = 50; thisTextarea.style.height = "50px"; }  } }
 *  Thread Starter [bk](https://wordpress.org/support/users/bk/)
 * (@bk)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/increase-decrease-size-of-comment-box/#post-256826)
 * Where do I add that?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Increase Decrease Size of Comment Box’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [bk](https://wordpress.org/support/users/bk/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/increase-decrease-size-of-comment-box/#post-256826)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
