This week's book giveaway is in the Spring forum. We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line! See this thread for details.
I need to create textarea objects on the fly. Below is the code I'm using to do that. However, I also need to use the events onkeydown and onkeyup to implement a textarea counter, of 250 characters. How/Can do I add the event handlers to my createElement code?
var textarea = document.createElement('TEXTAREA'); textarea.setAttribute('name', 'headerNote'); textarea.setAttribute('id', 'headerNote');