Failed to execute 'appendChild' on 'Node': The new child element is null
问题 This weird bug is bugging me from half an hour. I am dynamically trying to apply a slider using only JavaScript. Any idea as to why this is occurring to me? I could find other questions on SO, but could not understand the solution. I am new to JS and highly appreciate if someone could explain me things in laymen terms. Here is my code. MARKUP <!DOCTYPE html> <html> <head> <title>JS sample test page</title> <link rel="stylesheet" type="text/css" href="jquery.bxslider.css"> </head> <body> <div