需要按字符计时才能显示值 [英] need to time in characters to times to display value
本文介绍了需要按字符计时才能显示值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在自动完成中显示数据,我的输入框第二次没有得到值第二次
所以例如当键入A时,它不会显示但是第二次输入A它会显示值,但我想在第一次显示keypress上的值,而不是第二次,我使用sharepoint托管应用程序,没有document.ready它也不会工作,所以我怎么能防止需要键入2次显示值?
i am displaying data in an autocomplete , my input box dont get the value first time only second times
so for example when typing A, it dont dislay but second time i type A it displays the value but i want to to display the value on keypress the first time and not second, i am using a sharepoint hosted app, and without document.ready it wont work at also, so how could i do to preventing to need to type 2 times to display value?
$(document).ready(function () {
$("#subSiteTitle").keypress(function () {
推荐答案
(document).ready(function(){
(document).ready(function () {
(#subSiteTitle) .keypress(function(){
("#subSiteTitle").keypress(function () {
这篇关于需要按字符计时才能显示值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文