tipso icon indicating copy to clipboard operation
tipso copied to clipboard

AJAX ability to pull in specific HTML Element in ajaxContentUrl

Open wadeo opened this issue 8 years ago • 0 comments

I would like to see the ability to pull in element rather than everything specified within ajaxContentUrl. I originally thought that "contentElementId" would provide this functionality but I was mistaken.

Example: JS - jQuery('#Tip2').tipso({ background: 'tomato', ajaxContentUrl : '/ajax.php', content: '#2' });

Ajaxpage (ajax.php)

content from in div 1
content from in div 2

Rendered (Desired retreved HTML)
content from in div 2

(Actual retreved HTML) content from in div 1 content from in div 2

What can be done so the script just pulls in content from just the #2 element on ajax.php

wadeo avatar Sep 23 '16 17:09 wadeo