Input field Javascript

jdunhin

Active member
Registered
Joined
Feb 27, 2013
Messages
72
Points
0
Show one fields value in another input text field.

HTML:
HTML:
<input type="text" id="name" >
<input type="text" id="name2" >
Javascript:
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>
 
Older Threads
Replies
0
Views
2,125
Replies
14
Views
5,511
Replies
0
Views
2,033
Replies
3
Views
2,854
Replies
8
Views
5,850
Newer Threads
Replies
3
Views
6,083
Replies
0
Views
2,380
Latest Threads
Replies
0
Views
32
Replies
1
Views
39
Replies
0
Views
234
Replies
1
Views
49
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top