Dear StackOverflow community,
I am new to jQuery and Javascript, and was wondering what the main differences between these two functions are:
document.getElementById('id').innerHTML =variable;
and
jQuery('#id').val(variable);
From my understanding, they are two different coding techniques, but when would I use one over the other? and why?