So I\'ve seen three ways to add html/DOM elements to a page. I\'m curious what the pros and cons are for each of them.
1 - Traditional JavaScript
The cleaner way to do is using jQuery.
$('tr').addClass('myClass') like syntax. This is easy to read, understand and maintain.
$('tr').addClass('myClass')