One of my colleague who is learning jQuery asked me what is the difference between $('div') and $('<div/>') , if used as selector. To explain more, take a look at below code. $('<div/>').addClass('test'); $('div').addClass('test'); It is indeed quite confusing for someone who just started learning jQuery. So I went ahead and explained him about how […]
Comments Off on Difference between $(‘div’) and $(‘‘) in jQuery