hoamon wrote:
> how can i customize the fields in the newforms, or i walk the wrong
> way ??
What you described is an issue but I want to advice a different
technique that doesn't suffer from this issue and also considered more
robust.
You shouldn't mix your HTML with Javascript, instead you should assign
Javascript after the fact in a single place. For example:
<label id='id_personalid'>ID</label>
<input type='text' id='id_personalid'>
... and then somewhere in window.onload:
document.getElementById('id_personalid').onkeydown = function() {
// your code
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---