Having a small issue with my function here can't seem to work out why it's not recognising my code here. Anyone know what I'm doing wrong?
Thanks in advance.
function disabled() {
  document.getElementById('addBtn').disabled = true;
}<div class="col-lg-12">
  <button type="submit" id="addBtn" class="btn btn-default" onclick="disabled()">
    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add Fine
  </button>
</div> 
    