How can I add form elements in custom form on click of link?
You should take a look at Examples module or in particular the AJAX example
 https://api.drupal.org/api/examples/ajax_example!ajax_example.module/7 It's really helpful.