"product "
Bootstrap 3.3.0 Snippet by surajkurade

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <form class="form-horizontal"> <fieldset> <legend>Form Name</legend> <div class="form-group"> <div class="col-md-offset-4 col-md-4"> <input class="btn btn-danger" onclick="addInput()" value="+ ADD Point"> </div> </div> <!-- Text input--> <div id="container"> <div class="form-group"> <label class="col-md-4 control-label" for="point">Point</label> <div class="col-md-4"> <input id="point" name="point" placeholder="Enter Bullet Point" class="form-control input-md" required="" type="text"> </div> </div> <!-- Textarea --> <div class="form-group"> <label class="col-md-4 control-label" for="note">Note</label> <div class="col-md-4"> <textarea class="form-control" id="note" name="note"></textarea> </div> </div> </div> </fieldset> </form>
var counter = 1; function addInput(){ var html = "<div class=\"form-group\">"; html =html+ "<label class=\"col-md-4 control-label\" for=\"point\">Point</label>"; html =html+ "<div class=\"col-md-4\">"; html =html+ "<input id=\""+counter +"-point\" name=\"point\" placeholder=\"Enter Bullet Point\" class=\"form-control input-md\" type=\"text\">"; html =html+ "</div>"; html =html+ "</div>"; html =html+ "<div class=\"form-group\">"; html =html+ "<label class=\"col-md-4 control-label\" for=\"note\">Note</label>"; html =html+ "<div class=\"col-md-4\">"; html =html+ "<textarea class=\"form-control\" id=\""+counter +"-note\" name=\"note\"></textarea>"; html =html+ "</div>"; html =html+ "</div>"; document.getElementById("#container").append(html); counter++; }

Related: See More


Questions / Comments: