css style isn't showing up for buttons when using innerhtml

css style isn't showing up for buttons when using innerhtml

Hi,
I am having trouble injecting radio inputs into a div element. The css style for the radio buttons are like the native style.
The div i am trying to insert to is " NotesDiv".
This is my code, using asp to fetch the dynamic elements for the radio buttons:
  1. document.getElementById("NotesDiv").innerHTML = "";

  2. str = "<p class=\"sticky\" style=\"width: 75%;\">";
  3. <%Dim k
  4. For k=0 to countNotes-1 step 1%>
  5. str += "<input type=\"radio\" name=\"MyNote\" id=\"Notes<%=NotesResult(2,k)%>\" onClick=\"viewNote()\" value=\"<%=NotesResult(2,k)%>\"><%=NotesResult(0,k)%>  </input>"
  6. str += "(written by <%=NotesResult(1,k)%> at <%=NotesResult(3,k)%> )</br>"

  7. <% Next %>
  8. str+="</div>";

  9. document.getElementById("NotesDiv").innerHTML = str;