Append Fields to node form by ajax call
You can use Conditional Fields module to display form fields with certain conditions. No need to use custom ajax calls.


  Conditional Fields allows you to manage sets of dependencies between fields. When a field is “dependent”, it will only be available for editing and displayed if the state of the “dependee” field matches the right condition.