There is such a code, it is necessary that after answering a message another question appears with a field for an answer. Help me please.
<script> $(document).ready(function(){ $("p").append( $("strong") ); }); </script> <p>Привет! Как тебя зовут?</p> </script> <input type="text" id="input" /> <script type="text/javascript"> function sow(){ var a; a=document.getElementById("input").value if (a=='Леонид') { $("p").append("<p>Приятно</p>"); return false; } else{ $("p").append("<p>Приятно</p>" +a); } } </script> <input class="box" type="button" id="sub" name="submit" value="Отправить" onClick="return sow();">