<html>
<head>
<!--Load the jquery lib -->
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<!--Use jquery -->
<script type="text/javascript">
$var = 1;
</script>
<script type="text/javascript">
$(document).ready(function(){
$('#cont').click(function(){
$('<p />').text("hye").appendTo($('#cont'));
});
// $('p').live("click", function(){
// if($(this).text() == "Good...1")
// $(this).empty().appendTo($('#myDiv'));
//});
});
</script>
-->
</head>
<body>
<!-- <div id="myDiv">
<p>Hello world!</p>
</div>
<a href="#" id="myLink">Change text</a>
-->
<form id="myform">
<input type="text" style="width: 400px ; height : 100px ;" id = "txt">
<input type="submit" name="button" id="btn">
</form>
<div id="cont">
<p>Hello world!</p>
</div>
</body>
</html>
Here is my code . i want o click on button and create a paragraph with border in which text is written , any suggestions? Thanx in Advance , It will be like post box in face book.