Add Dynamic Elements In Forms
You need to create a custom Field Type or you can use dynamicfields in order to gain dynamic inputs. Or is it just about hiding/showing specific values in Javascript and not really about Craft at all?