This is my code
var _CountJK = 0;
function btnAddJK_onclick() {
String _txtID="txtJK"+_CountJK;
var d = document.getElementById("divJK");
d.innerHTML += "
";_CountJK++;
}
script>
Here,
When i create new textbox that ID of the textbox needs to change.
thats what i created variable _CountJK & i incremented that.
so when i user clicks add button again that count has to be increase & it has to assign to its ID
Its not coming
Can anybody give idea how to do this..

Ajitender VijayPosted Jan 27, 2012, 1:18 PM
Try this
-------------------------------------------------------------------------
If this post helps you, then mark as "Correct Answer "
SIVAPosted Jan 27, 2012, 11:32 AM
Ajitender VijayPosted Jan 27, 2012, 10:24 AM
Please check this
but control ID will lost if page post back
..........................................................................................................................................................
If this post helps you, then mark as "Correct Answer"
Thank
Ajitender vijay