Saturday, 3 August 2013

Tooltip Using JQuery


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ToolTipUsingJQuery.aspx.cs" Inherits="ToolTipUsingJQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>jQuery UI Tooltip - Forms</title>
<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>
<style type="text/css">
.ui-tooltip

font-size:10pt;
font-family:Verdana;
}
</style>
<script type="text/javascript">
$(function() {
$(document).tooltip();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<table>
<tr><td colspan="2" align="center"><b>User Information</b></td></tr>
<tr>
<td>FirstName:</td>
<td><input id="txtfName" name="firstname" title="Please enter your firstname." /></td>
</tr>
<tr>
<td>Lastname:</td>
<td> <input id="txtlName" name="lastname" title="Please enter your lastname." /></td>
</tr>
<tr>
<td>Education:</td>
<td>
    <asp:TextBox ID="txtEducation" runat="server" title="Please enter your education."></asp:TextBox>
</td>
</tr>
<tr>
<td>Location:</td>
<td>  <input id="txtLocation" name="address" title="Your home or work address." /></td>
</tr>
</table>

</form>
</body>
</html>

No comments:

Post a Comment