I was wondering how to use javascript when jquery has already been declared in the head. Javascript, in my opinion, is better to use for specific tasks, and jQuery is also better to use for some tasks. I am using jQuery, and jQuery UI, but it doesn't really matter what version I am using.
I have some simple jQuery here:
$(document).ready(function(){
$("button").click(function(){
$("div").animate({left: '250px'});
});
});
and I have some javascript right here:
document.getElementById('div2').appendChild(
document.getElementById('C')
);
I don't want to have the jQuery translated to js, or visa versa.
$("button")[0]