var current = "current" + String(c)
$('<div id = current > </div>').appendTo('body');
var stt="";
stt = '#' + String(current);
var fin= $(stt);
fin.append('<div id="current01"></div>');
document.getElementById(current).style.width="40%";
Unable to create the division with the name (“current” + c) . In the style statement it says
document.getElementById(current) is null
1 Answer