Perhaps you can get some ideas from the Creating Dynamic form content thread?
You might also chose a simpler alternative, having all the content present in your markup and only toggle the visibility of some parts via JavaScript.
Perhaps you can get some ideas from the Creating Dynamic form content thread?
You might also chose a simpler alternative, having all the content present in your markup and only toggle the visibility of some parts via JavaScript.