admin管理员组文章数量:1317915
Hi I am new to jQuery. Can some body tell me how to use JAlert in a project. Please help. thnx
ps
Hi I have used it in a netbeans project. But it doesnot work
<html>
<head>
<script type="text/javascript" src="jquery.js" ></script>
<script type="text/javascript" src="jquery.jalert.js" ></script>
<link href="jalert.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<script>
function hello()
{
jAlert('Price should be blocks of 10 cents', 'FAILED', );
}
</script>
</head>
<body>
<form name="accounts" method="POST" action="test.jsp">
<input type="button" name="clientAccount" value="click" onclick=hello()>
</form>
</body>
</html>
can sombody tell me what the problem
Hi I am new to jQuery. Can some body tell me how to use JAlert in a project. Please help. thnx
ps
Hi I have used it in a netbeans project. But it doesnot work
<html>
<head>
<script type="text/javascript" src="jquery.js" ></script>
<script type="text/javascript" src="jquery.jalert.js" ></script>
<link href="jalert.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<script>
function hello()
{
jAlert('Price should be blocks of 10 cents', 'FAILED', );
}
</script>
</head>
<body>
<form name="accounts" method="POST" action="test.jsp">
<input type="button" name="clientAccount" value="click" onclick=hello()>
</form>
</body>
</html>
can sombody tell me what the problem
Share Improve this question edited Nov 5, 2010 at 8:41 nath asked Nov 5, 2010 at 8:27 nathnath 2,84812 gold badges49 silver badges75 bronze badges 4- Hi I have used it in a netbeans project. But it doesnot work – nath Commented Nov 5, 2010 at 8:41
- It seems it doesn't work this way. Please stretch your fingers a bit and try to look at an example. – Halil Özgür Commented Nov 5, 2010 at 9:14
-
add quotes around the
onclick=hello()
:onclick="hello()"
. and what does the ma do after 'FAILED'? – Flo Edelmann Commented Nov 5, 2010 at 9:24 - oops sorry. I have faced to some syntax errors – nath Commented Nov 5, 2010 at 9:35
2 Answers
Reset to default 5Go to the jAlert demo page and view the source code.
see http://www.smooka./blog/2009/02/22/jalert-jquery-alert-box-plugin/
But please first search for jalert in Google, if you can't find something, you can ask a question here.
本文标签: javascriptHow to use JAlertsStack Overflow
版权声明:本文标题:javascript - How to use JAlerts - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742016607a2413891.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论