"text_replace"
Bootstrap 3.3.0 Snippet by daman

<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 ----------> <div class="container"> <form> <input type="text" id="parent" value="" /> <input type="button" id="child1" value="1" /> <input type="button" id="child2" value="2" /> <input type="button" id="child3" value="3" /> </form> </div>
$(document).ready(function(){ $('#child1').click(function(){ $("#parent").val("1"); }); $('#child2').click(function(){ $("#parent").val("2"); }); $('#child3').click(function(){ $("#parent").val("3"); }); });

Related: See More


Questions / Comments: