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.