Nika Gudge
asked on
struts2 tooltip
im trying to display the struts2 tooltip icon in my jsp page. i have added the javascriptTooltip in form and tooltip in the textfield. Im not sure what im doing wrong here.
the code is as below.
<s:form id="user" theme="simple" action="modifyUserAction" cssClass="myform" javascriptTooltip="true">
<li><label><span class="red">*</span> First Name:</label> <s:textfield id="firstName" name="firstName" maxlength="32" cssClass="text" theme="simple" tooltip="Enter firstname"/></li>
</s:form>
<script>
$(document).ready(function () {
$('#firstName').tooltip();
});
</script>
the code is as below.
<s:form id="user" theme="simple" action="modifyUserAction" cssClass="myform" javascriptTooltip="true">
<li><label><span class="red">*</span> First Name:</label> <s:textfield id="firstName" name="firstName" maxlength="32" cssClass="text" theme="simple" tooltip="Enter firstname"/></li>
</s:form>
<script>
$(document).ready(function
$('#firstName').tooltip();
});
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes i have the two queries. Also title did not work.
ASKER
thank you i was able to show the tooltip using title. This is what i did.
Now im trying to post this key to action class to retrieve value from the database.
Please can you show me how to use onclick event with jquery to send this through ajax.
<li><label><span class="red">*</span> Firstname: <i class="icon-info-sign" title="<s:property value="%{description}"/>" id="firstName"></i></label > <s:textfield id="firstName" name="firstName" maxlength="32" cssClass="text" theme="simple"/></li>
Now im trying to post this key to action class to retrieve value from the database.
Please can you show me how to use onclick event with jquery to send this through ajax.
<li><label><span class="red">*</span> Firstname: <i class="icon-info-sign" title="<s:property value="%{description}"/>" id="firstName"></i></label
<script src="//code.jquery.com/jqu
<script src="//code.jquery.com/ui/