2015-06-09, 10:06 PM
Hey, trying to implement a jQuery tooltip hover code on my forum, but I can't get it to support multiple tooltips in a single post without breaking. I tried adding an ID parameter but I don't know how to jet the JS to recognise it.
And the very simple JS in headerinclude:
\[tip id=(.*?) content=(.*?)\](.*?)\[/tip\]
<span id="tip-$1" title="$2">$3</span>
And the very simple JS in headerinclude:
<script type="text/javascript">
$(function() {
$("#tip").tooltip();
});
</script>
How would I go about this?