I want to print the image within the page. here is my code
<form method="post" action="" enctype="multipart/form-data">
<input type="radio" value="<img src='images/image1.jpg'>">
<img src="images/image1.jpg" width="50px" height="50px"><br/>
<input type="radio" value="<img src='images/image2.jpg'>">
<img src="images/image2.jpg" width="50px" height="50px"><br/>
<input type="radio" value="Both" />Both<br/>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$("input:radio[type=radio]").click(function(){
var value = $(this).val();
$('#showoption').val(value);
});
</script>
<label>Value</label>
<input type="text" id="showoption" name="name" disabled="disabled">
</label>
When I click on selected radio button the image it prints the image url. how to print the selected image.
</div>