jQuery, on("click", function for permalinks

Home Forums Product Support Forums Ajax Search Pro for WordPress Support jQuery, on("click", function for permalinks

This topic contains 3 replies, has 2 voices, and was last updated by

 
Keymaster
1 year, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30415

    Participant

    I need to be able to link individual search results links to a jQuery, on(“click”, function (e)….
    How can I either add a data-id or a css class to each search result?

    #30417

    Hi,

    You can either use the results templating feature to add more attributes to each result, or use the javascript API to do it on the client site – whichever you prefer.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #30431

    Participant

    I think your image you attached for the javascript API was incorrect? Please confirm. Didn’t see anything under General > Logic Behavior

    #30438

    Sorry, I linked it incorrectly: https://knowledgebase.ajaxsearchpro.com/other/javascript-api

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.