Executing Javascript to populate a drop down before HTML page loads
<p>I have 2 Drop Downs in a HTML form. The first dropdown needs to be populated with a list of usernames present in the DATABASE. </p>

<p>Secondly, Depending upon the selection made in the first drop down, I then need to run another JS script to make another call to the DB to retrieve the list of associated addresses to that username. </p>

<p>Can you please let me know whats the best way to achieve this objective? 
1) How can I run a JSscript before the HTML form loads to return that list? 
2) Should I get both the usernames and associated addresses in one Db call or just get the usernames first and then use onChange event on the first dropdown to execute the second call?</p>

<p>Any code would be most appreciated.</p>

<p>Thanks </p>
