以下は私のjavascriptです。
<script type="text/javascript">
document.getElementById('auth').onclick=change;
function change(){
this.className="account_holder";
}
</script>
htmlは
<td id="auth" class="authorised_reportericon" >
<a href="{% url incident.views.authorised_reporter %}">
<p align="center" style="color:black;font-size:16px;">Authorised Reporters</p></a>
</td>
onclick に td の ID を割り当てましたが、 Uncaught TypeError: Cannot set property 'onclick' of null としてエラーが発生します