How to change the name field of an <input> in an AJAX-driven page?

后端 未结 1 791
情歌与酒
情歌与酒 2020-12-21 23:00

For this target page (Sorry but SO doesn\'t allow hyperlinks to 62.0.54.118):

http://62.0.54.118/search?&q=42&oq=42&sourceid=chrome&ie=UTF-8&         


        
相关标签:
1条回答
  • 2020-12-21 23:16

    If the input name is just q, by itself, then merely change the waitForKeyElements call to:

    waitForKeyElements ("input[name='q']", changeLinkQuery);
    

    So that it looks for exactly q, rather than a q anywhere in the string.


    If that's not exactly the name of that <input>, comment below.

    0 讨论(0)
提交回复
热议问题