creating textarea dynamically
1 posts in topic
Flat View  Flat View

Posted By:   anand_mahalingam
Posted On:   Monday, March 20, 2006 12:25 AM

In my jsp page there is a text box. if the user feels it dosn't enough to him then he clicks a button. when he clicks a textarea should be generated dynamically.
so we hav to create a text area dynamically.

Re: creating textarea dynamically

Posted By:   Anonymous  
Posted On:   Monday, March 20, 2006 04:25 AM

Do it like this ... your textarea must exists but you hide/show it depending on a condition.

.. and write a function to change the visibility of myDIV,
this function must be executed when you click your button.

function myFunction()
var myDIV = document.getElementById("myDIV");
if( myCondition )

. . . . . . .

About | Sitemap | Contact