Really I felt shy on the way I did coding.
Actually the issue is:
I was binding the event before adding it in to a html tag
I solved by this.
Created a variable, and in the loop assigned the value with comma separated and prefixed with # symbol on each value.
After appending the elements in a div tag then bind the "change" event using the variable.
$(document).ready(function(){
...
var InputIds = "";
$(obj).each(function(){
str += "<li><input id="txt" + ID + "" type="text" title="" + Text + "" /></li>"
InputIds += "#" + "txt" + ID + ", ";
...
});
$("#DivInputFields").append(str);
$(InputIds).change(function(){
...
...
...
});
});
I don't know whether this is right or wrong but working. If am doing wrong please help me.
Thank you Sergey Alexandrovich, I understand the problem in question posted here, I will improve myself to post with clear code.
-Kiran. B. S