can't access class via the "." class selector

can't access class via the "." class selector

when  the code below executed
  1. $("#omniProperties").append("<input type=\"text\" class=\"omniProperty\"  size=1 value=\""+ attrs[key]+"\">;" );
It produces the html code:

  1. <input type="text" class="omniProperty" size=1 value="100" />
I can't access this text box with code below.

  1. $(".omniProperty").click(function(){alert("here");});
Normaly the "Auto Complete" function of my editor will display a list of classes, but this class is not in the list.

Can someone point me in the right direction?

Thanks