Nathan Riley
asked on
Button to add additional fields to HTML Form
How could I use a button to "Add" additional RSS Title and RSS Link fields to the end of my form? I assume with jQuery
<form class="col-md-12" action="submit.php" method="post" style="margin-top:20px;margin-bottom:20px;">
<div class="form-group">
<label><span class="accountHead">Custom Insights</span></label><br><br>
<input type="radio" name="insightsMode" value="0"> Disabled
<input type="radio" name="insigntsMode" value="1" checked=""> Enabled
</div>
<div class="form-group">
<label>RSS Feeds</label><div class="clearfix"></div>
<div class="col-md-6 noPadLeft">
<input class="form-control" name="rssInfo[title]" placeholder="Title"/>
</div>
<div class="col-md-6 noPadLeft">
<input class="form-control" name="rssInfo[link]" placeholder="Link"/>
</div>
<div class="clearfix"></div>
</div>
<input type="hidden" name="submitType" value="20"/>
<input type="hidden" name="userID" value="<?php echo $userID;?>"/>
<input type="hidden" name="orgID" value="<?php echo $orgID;?>"/>
<button class="btn loginBTN">SAVE</button>
</form>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.