I am using jQuery to add placeholders to each text box on a page. I could just use $(document).ready() and then iterate through all the elements locating all those with the placeholder attribute and then adding the events to that element but this means that the user could click on the text box before the jQuery code is applied.
So I would like to apply the code as each text box is located. Does anyone know how to do this? I have been messing around with jQuerys event handling but I cant get it to work.
Thanks in advance.