I have an ajax call, and am wondering how I can fade in the response. The short code is this, I believe that is what you need to be able to tell what extra code should be added to achieve the fade in effect.
PS: It is not made in Jquery, so I need to keep it native js, if possible..?
This is where I write out the answer from the ajax call:
setTimeout(function(){document.getElementById(sec_1_svar_id).innerHTML = sec_1;}, 1300);
It works fine with the timeout, and then I thought/hoped I could add this bit somehow:
'fade()',8000
Ive tried a couple of different ways, but I either destroy the answer, or nothing happens... :-)
Klemme