This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

jQuery, on("click", function for permalinks

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30415
    iHuman03iHuman03
    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
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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.

    #30431
    iHuman03iHuman03
    Participant

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

    #30438
    Ernest MarcinkoErnest Marcinko
    Keymaster
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.