Input field Javascript

jdunhin

New member
Joined
Feb 27, 2013
Messages
93
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
Newer threads
Replies
5
Views
2,203
Replies
16
Views
6,644
Latest threads
Replies
0
Views
5
Replies
0
Views
20
Replies
0
Views
24
Replies
0
Views
47
Recommended threads
Replies
5
Views
2,251
Replies
4
Views
2,363
Replies
11
Views
3,367

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Latest Blog ArticlesMost Viewed Threads

Popular tags

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