wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes java Script throgh DOM Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "java Script throgh DOM Object" Watch "java Script throgh DOM Object" New topic
Author

java Script throgh DOM Object

phoby paul
Greenhorn

Joined: Jul 07, 2001
Posts: 3
I want to set the attribute 'maxlength' for my dynamically added rows. But it is not possible for me do it.
var currCell = document.createElement("TD");
var currText = document.createElement("input");
currText.setAttribute("name","mszDescription");
currText.setAttribute("type","text");
currText.setAttribute("id",currRows);
currText.setAttribute('maxlength','20');
currCell.appendChild(currText);
currRow.appendChild(currCell);
I am not able to set the maxlength attribute for dynamically added rows. All other attributes are posible to set. Please send a solution with some piece of code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java Script throgh DOM Object
 
Similar Threads
java Script using DOM Object
Setting the values in Combo using DOM objects
Adding Dynamic ROW to HTML Table
unable to set onclick for tr during dynamic table create
java Script using DOM Object