is there any way I can be notified when particular node gets added in DOM?
I have a function that applies on all input text fields. When DOM get loaded, i use getElementByTagName() and then filter with type attributes of only text and I apply that function to all of them.
But the problem is that, when somebody adds new node, I must be notified to apply that function to newly added field.
I want something like jQuery live() function, but in javascript.
Is there any particular listener that I can listen to and get notified when input tag gets added?