Hi @all,
i have a little problem with some jquery code.
At the Service Desk Request Formulare we can see the field description and want it to display the text in a tooltip hover a (?) image.
What i have is that code:
// Execute after the page was fully loaded
AJS.toInit(function($) {
if ($('#jsonPayload').length) { // scope to JSD
var tooltip = jQuery(
'<div class="description">'
+ '<img src="@contextPath/plugins/cute/static/resource/SD-CGM-TT/help_16.gif" title="Test!" />'
+ '<span class="tooltiptext">Tooltip text</span>'
+ '</div>');
tooltip.insertBefore('.vp-form.aui.vp-request-form div.description');
}
});
it show the form like this

The text i will display in the tooltip of each of the "?" is standing below the image of ?
can anybody help me?
I don't know wo i can grab the description of the field and display it in a tooltip.
Best regards,
Stephan