FY Hsieh wrote:I am really not sure how you can use
setAttribute()
to create the html dynamically.
You can't use it to create general HTML, but you can certainly use it to add the
checked attribute to an element.
Where is your code that's not working?