After successfully appending data to the HTML element using the code below:
$("#bookListDiv").append(data.HTMLString);
I wanted to enhance the display by adding a fadein animation. So, I made some adjustments to achieve this effect:
$(data.HTMLString).hide().appendTo("#bookListDiv").fadeIn(1000);
The animation works perfectly in Chrome, but I encountered an error while testing it on Firefox: TypeError: Argument 1 of Window.getComputedStyle does not implement interface Element. I am currently using jQuery version 1.8.2.
Could you please help me troubleshoot this issue? I suspect there might be something wrong with the way data is handled, although the initial method worked fine.