如何在asp.net中使用jquery显示工具提示 [英] How to show tool tip using jquery in asp.net

查看:59
本文介绍了如何在asp.net中使用jquery显示工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的asp.net apllication中使用j查询显示文本框鼠标上的工具提示,请求我回答,

谢谢...

i want to show tool tip on text box mouse over using j query in my asp.net apllication,pleas sujest me answer,
thanks...

推荐答案

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>jQuery UI Tooltip - Forms</title>

<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>

.ui-tooltip
{
font-size:10pt;
font-family:Calibri;

}
body
{
font-size:12pt;
padding:10px;
font-family:Calibri;
}

<script type="text/javascript">


function (){


' #txtfName')。工具提示({
track: true
});
});
< / script >
< / head >
< body >
< 表单 id = < span class =code-keyword> form1 runat = server >

用户信息

名字:
< 输入 id = txtfName name = firstname title = 请输入您的名字。 / >


姓氏:
< 输入 id = txtlName 名称 = lastname title = 请输入您的姓氏。 / >


位置:
< 输入 id = txtLocation name = address < span class =code-attribute> title = 请输入您的位置。 / >


< / form >
< / body >
< / html >
('#txtfName').tooltip({ track: true }); }); </script> </head> <body> <form id="form1" runat="server"> User Information FirstName: <input id="txtfName" name="firstname" title="Please enter your firstname." /> Lastname: <input id="txtlName" name="lastname" title="Please enter your lastname." /> Location: <input id="txtLocation" name="address" title="Please Enter Your Location." /> </form> </body> </html>


这篇关于如何在asp.net中使用jquery显示工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆