I have a html structure like -
<div class="fullcalendar-event">
<h3 class="title"><a href="isv-events/test-event">Test Event</a></h3>
Now i want to change this html on page load to
<div class="fullcalendar-event">
<span class="qtip-link">
<span class="qtip-tooltip">
Header to appear in tooltip
</span>
<h3 class="title">
<a href="/saasmax/trunk/isv-events/test-event">Text to appear in tooltip</a></h3>
</span>
Any ideas regarding what jQuery functions I should be using and approach to this problem?
Edited question
The complete data is of following format-
<div class="fullcalendar-event">
<h3 class="title"><a href="/saasmax/trunk/isv-events/test-event">Test Event</a></h3>
<div class="fullcalendar-instance">
<a href="/saasmax/trunk/isv-events/test-event" field="field_e_date" allDay="1" start="2011-04-25" end="2011-04-25" index="0" eid="184" entity_type="node" cn="fc-event-default isv_events node-type-isv_events" title="Test Event" class="fullcalendar-event-details" editable=""><span class="date-display-single">Mon, 04/25/2011</span></a> </div>
</div>
so if you see i want to set the qtip on the first of the anchor tags(which is inside the div fullcalender.
All the data that i need need to is that
Header to appear in tooltip should be the title of the anchor in the div fullcalendar-instance.
The Text to appear in tooltip can be the link in the anchor tags.(which is same in both div's)