I am using this cool script http://qpoit.com/marcofolio_demo/apple_search/ however when I click on a search result, I want it to be added as html content to an id which I will use like . I know this is done with $(“#displayContent”).html(data); however I need the content of search result that I clicked on to be and not all the results found. Please help
I am using this cool script http://qpoit.com/marcofolio_demo/apple_search/ however when I click on a search
Share
The rpc.php-file of the search, contains the function, which generates the output of the search.
In line 29, change the content to a JavaScript-function, which does this work for you.
After that, head back to the index.html (or the file in which you are using the apple-search), make sure jQuery is loaded and add something like this:
Once you click on a search-result, it should make it the content of #finalResult, or whatever element you choose.