It was a simple textbox like
On a button click i just wrote like :
<input type="text" id="userName" />
and surprisingly it worked.
kindly help me resolve this, wishing for a innovation soon