简体   繁体   中英

Auto expanding textarea in Django

I want to have a textarea which will auto expand( vertically ) with input text in Django crispy form. Is there any simple way to do this.

 <form> <div class="form-group"> <label for="comment">Comment:</label> <textarea class="form-control" rows="5" id="comment" name="text"></textarea> </div> <button type="submit" class="btn btn-primary">Submit</button> </form>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM