aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Enter text into newly created dynamic textbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Enter text into newly created dynamic textbox" Watch "Enter text into newly created dynamic textbox" New topic
Author

Enter text into newly created dynamic textbox

indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
Hi,
am creating a dynamic textbox with datepicker image.
When I enter new date in the newly created text box,
the date is updating in the previous text box. The newly created textbox is not taking any date. Am just focussing the cursor into newly created textbox.

1. what else should be done to enter newdate in the newly created text box ??
2. And also the previous textbox should be disabled once I come to the next row..

Please help me ...

thanking you
indu


thanks,
indu
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
code?

Eric
indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
Jsp Code -->>>

Javascript Function Code


Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
In the future use code tags, I edited your post to include them.

Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
ids are singular so you can not have more than one id on the page repeating. Your code keeps setting the same id.

Eric
indu yeturu
Ranch Hand

Joined: Aug 27, 2008
Posts: 123
Sorry , I am not getting what you said ...
Could you please tell a bit explanatory...

thanks
indu
Deepika Saxena
Ranch Hand

Joined: Jul 05, 2009
Posts: 59
Indu,
Ids are unique identifiers for the controls within the page. each control is identified with its unique id. since you are using the same id for changing the content, the code is repeatedly modifying the same control. Eric please correct me if i am wrong.
--Deepika
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enter text into newly created dynamic textbox