JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Web Design 版  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 請教有關javascript問題
mikru168





發文: 190
積分: 0
於 2010-12-15 14:03 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
現在有兩個欄位,我想在輸入完第一個欄位後將指標移走,第二個欄位的值也能跟第一個欄位相同,可否請教要如何達成?或者跟我講一個方向或關鍵字,我再自己去找,謝謝大家。

reply to postreply to post
作者 Re:請教有關javascript問題 [Re:mikru168]
Tony1223





發文: 201
積分: 0
於 2010-12-15 14:10 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
http://jsfiddle.net/7pJPj/

<input type="text" id="tb1" onBlur="document.getElementById('tb2').value = this.value;" />
<input type="text" id="tb2" />

類似這樣的東西,關鍵字:事件、onBlur 、提問的智慧


reply to postreply to post
TonyQ@ptt.cc
作者 Re:請教有關javascript問題 [Re:mikru168]
mikru168





發文: 190
積分: 0
於 2010-12-15 14:12 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
感謝你...提問的智慧...................

reply to postreply to post
作者 Re:請教有關javascript問題 [Re:mikru168]
caterpillar

良葛格

版主

發文: 2613
積分: 70
於 2010-12-15 14:26 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<html>
    <head>
        <meta content="text/html; charset=Big5" http-equiv="content-type">
        <script type="text/javascript"
          src="http://openhome.cc/Gossip/JavaScript/samples/js/gossip-0.4.js"></script>
        <script type="text/javascript">
            XD.bind(window, 'load', function() {
                XD('#source').blur(function() {
                    XD('#target').val(this.value);
                });
            });
        </script>        
    </head>
    <body>
        來源:<input id="source"><br>
        目的:<input id="target">
    </body>
</html>


我只是無聊。。XD


caterpillar edited on 2013-04-06 17:03
reply to postreply to post
良葛格學習筆記
作者 Re:請教有關javascript問題 [Re:mikru168]
mikru168





發文: 190
積分: 0
於 2010-12-15 14:34 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
感謝兩位前輩...

reply to postreply to post
» JWorld@TW »  Web Design 版

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8