Once your new object has been added to the document you should have total
access to ii and when you create the new object that's when you attach the
event.
I can't tell by the code you posted, when these things are executed.
jquertil <[EMAIL PROTECTED]> wrote:
Hello...
I'm creating an input element like this:
$(this).after(' [input] value="Enter Symptom" class="focusClear"/
>');
then I want to clear the value on focus like so:
$('.focusClear').focus(function(){
$(this).val('');
});
Obviously this doesnt work cine jquery doesnt know about the element
yet. Do I need to write it as an extension?
Thanks!
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.