Member Avatar for iamthwee

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!

Recommended Answers

All 2 Replies

Member Avatar for iamthwee

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>

iAm,

Looks right.

Could you mark ""solved please.

Airshow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.