Difference between revisions of "How to add a tooltip for a standard form field like Title, Name, E-mail"

From JReviews Documentation
Jump to: navigation, search
Line 5: Line 5:
 
Use this code to include a tooltip:
 
Use this code to include a tooltip:
 
<source lang="php">
 
<source lang="php">
<span class="jr_infoTip" title="This is the tooltip text"></span>
+
<span class="jr_infoTip">&nbsp;</span><div class="jr_tooltipBox">This is some tooltip text</div>
 
</source>
 
</source>
  

Revision as of 14:19, 23 August 2011

Edit the theme file of the submit form:

  • \com_jreviews\jreviews\views\themes\{theme_name}\listings\create_form.thtml


Use this code to include a tooltip:

<span class="jr_infoTip">&nbsp;</span><div class="jr_tooltipBox">This is some tooltip text</div>

Add the code inside the <label> tag of any form field