Separating JavaScript from HTML Structure

I was answering a question in relation to JavaScript and jQuery on StackOverflow today, and in doing so, another user came up with this comment: “It’s generally understood that if you make changes to the (HTML) structure, you’ll have to update the javascript” Now this I tried to explain why this was wrong in the […]