Thanks Sir Tim for reading my post..
Ill try to explain my problem as clearly as i can..
Code:
textboxtag.setAttribute("name","username");
this code above will set the attribute of the textbox after i created it using createElement.
so the dynamic form source code will become like this:
Code:
<input type='text' name='username'>
but what i want is after i create the dynamic textbox using createElement and i click it i can set its name to what ever i want.
maybe like this:
Code:
textboxtag.onClick = function setAttributeManually(){
//maybe here the setting of attribute will take place
// but i dont know how..
}
i dont know if it clear enough now.but i wish it was..
thanks again..more power to the readers.