jQuery: append() vs appendTo()
To answer the question, you don’t have an element to appendTo anything, as you’re missing characters (in your case it’s an opening angle bracket <). This $(‘div/>’,{}); needs to be $(‘<div/>’,{}); to create an element, otherwise it does exactly what you say it does – nothing! Otherwise you seem to have the order of things … Read more