Lately, there have been numerous questions being asked on SO, with javascript,jquery both tagged.
For example consider this case : User wants to hide an element.
Javascript :
document.getElementById("divId").style.display="none";
jQuery :
$('#divId').hide()
Some might accept the second as it seems easy to understand and implement.
Almost every question has an answer in both plain old javascript and modern jQuery. But if a user has the whole project with 1000 lines of plain javascript code, is it advisable to use jQuery in such cases?
What should an answering person take as priority :
The order in which the tags are used? (So, if javascript is tagged first, answer should be in javascript)
The most optimized way to solve the problem.
The language currently used.