title: How do I set the value of a Text Field through TamperMonkey?
body: <p>I'm new to javascript and tampermonkey, try to remember that in your explanations please.</p>
  
  <p><a href="http://powerschool.avon.k12.ct.us/guardian/home.html" rel="nofollow">This is the site I'm trying to work with</a></p>
  
  <p>As you can see it's pretty simple. However there's no way to make the site remember your password, and right now all I'm trying to do is make a script that will fill in the username and password fields with, you guessed it, my username and password.</p>
  
  <p>Working off of a few tutorials I found online (it doesnt seem like there's a lot of tutorials for writing scripts in TamperMonkey), I managed to come up with the following code</p>
  
  <pre><code>// ==UserScript==
  // @name       Powerschool Memory
  // @namespace  http://use.i.E.your.homepage/ 
  // @version    0.1
  // @description  Makes PowerSchool remember your username and password.
  // @match      https://powerschool.avon.k12.ct.us/gaurdian/home.html
  // @require http://code.jquery.com/jquery-latest.js
  // @copyright  2013+, You
  // ==/UserScript==
  
  jQuery(function($) {
      document.getElementById($('input[type=password]').attr('id')).textContent = 'password_here';
      document.getElementById('fieldAccount').innerHTML = 'username_here';
  });
  </code></pre>
  
  <p>As you can see I've tried two ways of setting the content of the field for the username(setting the element's innerHTML) and password(setting the textContent), however neither seem to work. </p>
  
  <p>I'm fairly sure the script is running, as whenever I'm about to navigate to the website I go to the dash and restart the script. </p>
  
  <p>The username field's ID, I should mention, was obtained by right clicking on the text box, inspecting the element, and copying and pasting the next following id variable</p>
  
  <p>Could you guys help me see where my error is and, perhaps more importantly, what I'm doing to mess it up?</p>