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

前端 未结 2 1669
春和景丽
春和景丽 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 :)

提交回复
热议问题