English 中文(简体)
J. Query的重写搜查建议
原标题:rewriting search suggest in jQuery

首先,我知道,有 j虫药片,可以进行搜查。 我要求这样做的原因是,我为我的具体需求写了一封信,而且我有兴趣学习如何把文字写在 j里(而不是仅仅用一个gin子)。 See Code that I pasted to Pastebin——我希望那是 s。

原件:

http://pastebin.com/S86ES8bH“rel=“nofollow noreferer” http://pastebin.com/S86ES8bH

我所努力的两点是:

纽约总部 最初的(和现在的j Query)儿童指数(见unhilite(<>功能)。 我没有找到这样做的方法。 我可以发现的最近一点是:next('selector”>,但是,这些要素没有一种选择,我只能依靠OM指数。 我正想通过做像:

$( .hilited )
    .next( li )
        .addClass( hilited )
    .end()
    .removeClass( hilited );

这项工作是否良好? Edit:即使它做得很好,能否获得像(未来参考)那样的OM指数?

纽约总部 第二,我不知道如何把键盘事件与“ j子”联系起来(不使用我想要避免的gin子——再用于学习目的)。 但我想bind(keydown(>>可使用。

$( #target ).keydown(function(event) {
    if (event.keyCode ==  40 ) {
        //next
    } else if (event.keyCode ==  40 ) {
        //previous
    }
)};

没有人提出任何建议? 感谢SO,你支持我!

PS- sajax_do_quest is Mediawiki AJAX syntax for any that isn t known...

最佳回答

我回答了我自己的一些问题。 我可以使用j Query s nth child,如果我想要的话,可以选择。 所建议的其他解决办法确实可行,但是仍然可以提出建议。

问题回答

暂无回答




相关问题
Search field with Thickbox issue

i have a search form which is shown with Thickbox inside an iframe. the problem is.. that after i click "search" the result page is shown inside the same iframe! and i want it to be shown in the main ...

Will an incomplete google sitemap hurt my search ranking?

If I submit a sitemap.xml which does not contain all of the pages of my site, will this affect my search ranking? For example: If my sitemap only contained pages that had been created in the last ...

speeding up windows file search with C#

i made a program that search logical drives to find a specific file .if user type file name an click search button , searching begins , but i don t know how to stop searching in the middle of process....

JQuery/MVC Search Issue

I have inherited a piece of work where the entry screen shows a summary of 20 calculated variables. E.g. Var A (250), Var B (79). Clicking on any of these links takes the user to a view with a ...

Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

Embed Google/ Yahoo search into a web site or build your own

I am looking for an opinion on the whether to use Google custom search, Yahoo search builder or build my own for web projects (no more than 100 pages of content). If I should build my own - do you ...

热门标签