I have written this javascript code
document.getElementById('placeForTitle').innerHTML=
"<div class='postAdLabelnTextboxSelTitle'>
<div class='post-ad-label'>Select Title</div>
<div class='selectTitleContain'>
<input name='selctedTitle' type='radio' id='tit1_1' value='"+title1_1+"' required />
<label for='tit1_1'>"+title1_1+"</label>
<br />
<input name='selctedTitle' type='radio' id='tit1_2' value='"+title1_2+"' required />
<label for='tit1_2'>"+title1_2+"</label><
/div>
</div>";
but it is not work and due to this other javascript function is also not working. I tried different combinations but not working.