File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strut with javascript

 
Mittal Mistry
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i want to create teatarea dynamincally in jsp. For that i have written this code.Its works properly in html but i am facing some problem..

function addSol()
{
var ni = document.getElementById('myDiv');
var numi = document.getElementById('theValue');
var num = (document.getElementById("theValue").value -1)+ 2;
numi.value = num;
var divIdName = "sol" + num;
alert(" nupur" + divIdName);
var newdiv = document.createElement("<html:textarea property='<%= divIdName %>'/>");

ni.appendChild(newdiv);
}


So now error is in property='<%= divIdName %>'/>"
like how can i declare value of property as a vaiable
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic