Tooltip is placed as a title:
<input type='text' id='uname' title="gggg" />
http://jsfiddle.net/samliew/w97FA/2/
Otherwise, you have to initialize the element with empty title, in order to set it dynamically:
<input type='text' id='uname' title='' />