JSFiddle - React, Tailwind, and code Playground
HTML
<FORM action="someform.php" method="POST" accept-charset="utf8">
<!-- radiobutton with certain amount -->
<div id="amount-div" style="float:left;width:220px;">
<input type="radio" name="goal-type" value="amount" id="amount">
<label>I will save a certain amount</label>
<p>1) I want to save</p>
<input type="text" name="amount-value" id="amount-value" onchange="$('#js-amount').show(1000)">
<p>2) Freqeuncy</p>
<select name="frequency-amount" id="freq-amount">
<option value="1" >Every week</option>
<option value="2">Every 2 week</option>
<option value="4.33">Monthly</option>
</select>
<div id="js-amount" style="display: none">
<p>You will achieve this goal by:</p>
<p id="achieved-date"> <p>
<p id="weekly-limit-amount">Your weekly limit will be decreased by $100</p>
</div>
</div>
<!-- radiobutton with specific date -->
<div id="specific-div" style="float:left;width:220px;">
<input type="radio" name="goal-type" value="specific" id="specific">
<label>I have a specific date </label>
<p>1) I want to achieve this goal by: </p>
<input type="text" name="specific-date" id="specific-date" onchange="$('#js-specific').show(1000)"><br>
<p>2) Save money </p>
<select name="frequency-specific" id="freq-spec">
<option value="1" >Every week</option>
<option value="2">Every 2 week</option>
<option value="4.33">Monthly</option>
</select>
<div id="js-specific" style="display: none">
<p>You need to save:</p>
<p id="spec-amount-money"></p>
<p>to achieve this goal by: </p>
<p id="specific-date-format"></p>
<p id="weekly-limit"></p>
</div>
</div>
<br style="clear:both;">
<input type="submit" value="Add / Modify">
</FORM>