0

Hello my fellow friends.

I'm in need of help. I'm just no good with Javascript. What I have is the following...

http://vadikom.com/demos/poshytip/#async-simple

Now it works well. But you have to create a new class for EACH toolip on the page and reference it to its class id. WTF?

Anyway to generalise it so you can create multiple tooltips reusing the same class.

Any help much appreciated!

2
Contributors
2
Replies
5
Views
6 Years
Discussion Span
Last Post by Airshow
0

Don't worry about it. This solution was to change the declaration from a div to a class:

I.E

<!-- Setup examples on this page -->
	<script type="text/javascript">
		//<![CDATA[
		$(function(){

			$('.demo-basic').poshytip();
									

			

		});

			
		//]]>
	</script>

instead of

<!-- Setup examples on this page -->
	<script type="text/javascript">
		//<![CDATA[
		$(function(){

			$('#demo-basic').poshytip();
									

			

		});

			
		//]]>
	</script>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.