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