Using string and variable input while using load
Hi i am trying to create a dynamic <div> using append and then load an external html file into it.
- var refId = "Id1";
- $('#divContainer').append("<div id='"+refId+"'></div>");
- $("'#"+refId+"'").load("RE/"+refId+".html");
i have a file RE/Id1.html.
The div gets created but the load statement does not work.