Here are the p tags that auto populate on page load with multiple options.
<div id="bunchOfChoices" class="choices">
{% for user in users %}
<p id="searchOpts" class="searchOpts">{{user.username}}</p>
{% endfor %}</div>
<script>
var opts = document.getElementById('searchOpts');
opts.onclick = function(event) {
var target = event.target || event.srcElement;
the_user = target.innerHTML;
href= "/../users/"+String(the_user);
window.location=href;
};
</script>
This code seems to only get the first "searchOpt". Also, I am aware I can use <a>
tags instead of this method.