How can I make this link clickable in JQuery UI Autocomplete? Uncaught TypeError

前端 未结 2 1642
春和景丽
春和景丽 2021-01-26 09:35

I\'m trying to use the Jquery UI autocomplete plugin, and i\'d like to render some html in the suggest box, with clickable links. The html seems to render ok, however when I cl

相关标签:
2条回答
  • 2021-01-26 10:04

    Im guessing that you have already found a solution for it, but better late then never.

    I know this isn´t the optimal solution, but it works.

    $(".yourLink").live('click', function () {
        var yourLinkHref= $(this).attr('href');
        window.location = yourLinkHref;
    
    });
    

    Hope it helps :)

    0 讨论(0)
  • 2021-01-26 10:19

    I can find no evidence that this is doable without monkey patching a large part of jquery. YUI3 works spectaculary well, however. No monkeying around necessary

    http://developer.yahoo.com/yui/3/autocomplete/

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