- Joined
- Feb 27, 2013
- Messages
- 72
- Points
- 0
Show one fields value in another input text field.
HTML:
Javascript:
HTML:
HTML:
<input type="text" id="name" >
<input type="text" id="name2" >
Code:
<script src="http://code.jquery.com/jquery-1.5.js" type="text/javascript">
<script type="text/javascript">
$(function(){
$("#name").change(function(){
var name = $("#name").val();
$ ("#name2").val(name);
});
})
</script>