Ok ... here you go, because Christmas is right there at the door:)
$ ("message-form-content"). attr ('style', '');
var elementos = document.querySelectorAll(".message-form-content");
for (var i = 0; i < elementos.length; i++){
elementos[i].style = '';
}
$ ("# load-content"). html (success);
document.getElementById('load-content').innerHTML = success;
$ ("# imageForm"). reset ();
document.getElementById('imageForm').reset();
$ ("# post9999999999"). val ('');
document.getElementById('post9999999999').value = '';
$ ("# post9999999999"). focus ();
document.getElementById('post9999999999').focus();
$ ("# queued-files"). html ("0");
document.getElementById('queued-files').innerHTML = "0";
// repare que assim como tinha é string, pode tamber fazer .innerHTML = "0" para ter Type Number
$ ("selected-files"). fadeOut (600);
Note: can (and should!) do this with CSS, there are already answers about this here in SOpt.
But in JS I think there is no live example: link .
var elementos = document.querySelectorAll('.selected-files');
for (var i = 0; i < elementos.length; i++) {
elementos[i].style.opacity = 1;
fade(elementos[i], 600);
}
function fade(el, duracao) {
if ((el.style.opacity -= 40 / duracao) < 0) el.style.display = "none";
else setTimeout(function () {
fade(el, duracao);
}, 40);
}
$ ("div.timeago"). timeago ();
This one has to ask a separate question :) You have to explain better what plugin it is and what function it does.