Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Return chosen result id via jquery object without redirect › Reply To: Return chosen result id via jquery object without redirect
November 4, 2019 at 5:52 pm
#24517
Keymaster
Hi!
Sure, if you are planning to use a custom jQuery function, you can use this as well as a baseline:
jQuery(function($){
$('.asp_r').on('click touchend', 'a', function(e){
e.preventDefault(); // Stops the redirection
});
});
This will stop any interaction with the results, and then you can add your own.