title: How to run javascript on individual form fields in django
body: <p>I am currently trying to get my registration template to run as I want it to. This includes having a check for a unique username, before the user submits the post. I plan on doing this by using javascript and Ajax, and by following this <a href="http://thepythondjango.com/how-to-use-ajax-in-django-project/" rel="nofollow noreferrer">tutorial</a>.</p>
  
  <p>If you look at the link, they've typed out each field in their form individually in their HTML file. I, am currently rendering my form using <code>{{ form.as_p ]}</code>.</p>
  
  <p>I was wondering if there is a way to check what is in the username field so that that I can run the javascript/ajax while rending the form the I currently have it, or if I need to type out each field in the form manually.</p>
  
  <p>Thanks</p>