0
好的,任何人都可以幫忙嗎?jquery鍵入字母作爲移動鍵盤
我有信無功ARR數組= [A,B,C] 我想實現像手機打字(舊:)
如果用戶在2秒內的jquery「LL任何地方點擊一次在文本框中放入一個字母a。如果用戶在兩級秒鐘的jquery點擊兩次「要是把字母b到文本框,螞蟻,還有c,如果他點擊三次,在兩秒鐘......
謝謝
這是我有: 情況:
var myInterval = setInterval(function() {
countLetters=0;
}, 2000);
}
var sellectedBoxLetters = $('div.gh_h2.gh_v1.js_item.selected').attr('title'); //this gets array of 3 letters a, b, c
if (sellectedBoxLetters != null)
substr = sellectedBoxLetters.split(' '); // this gets letter by letter
$("input#search").val($('input#search').val() + substr[countLetters]); //this puts the value into the box but without hops ..all letters
countLetters++;
首先,它應該是'變種ARR = [ 「一」, 「B」, 「C」]'。你到目前爲止嘗試過什麼? – slash197 2012-03-23 12:40:46
[你有什麼試過](http://mattgemmell.com/2008/12/08/what-have-you-tried/)到目前爲止?我希望你不要指望我們爲你寫代碼。 – 2012-03-23 12:41:04
好的我edditet,這是我到現在爲止的代碼 – Avicena00 2012-03-23 12:47:02