Tooltip for Textbox in Asp.net using Jquery

Tooltip for Textbox in Asp.net using Jquery

Steps to get Result

1. Add script to head in Design Page

<link rel=”stylesheet” href=”http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css” />
<script src=”http://code.jquery.com/jquery-1.8.2.js”></script>
<script src=”http://code.jquery.com/ui/1.9.1/jquery-ui.js”></script>

<script type=”text/javascript”>
$(function () {
$(document).tooltip({
track: true
});
});
</script>

2. Add Style for tooltip Design

<style type=”text/css”>
.ui-tooltip
{
font-size:10pt;
font-family:Calibri;

}
body
{
font-size:12pt;
padding:10px;
font-family:Calibri;
}
</style>

3.  Add code in Form

<table>
<tr><td colspan=”2″ align=”center”><b>User Information</b></td></tr>
<tr>
<td>FirstName:</td>
<td><input id=”txtfName” name=”First Name” title=”Please enter your First Name.” /></td>
</tr>
<tr>
<td>Lastname:</td>
<td> <input id=”txtlName” name=”Last Name” title=”Please enter your Last Name.” /></td>
</tr>
<tr>
<td>Location:</td>
<td> <input id=”txtLocation” name=”Address” title=”Please Enter Your Address.” /></td>
</tr>
</table>

1 Comment

  1. Faisal hasan

    this is very useful to me mr abdul your vary telented person in the skysoft

Leave a Reply