newbie

newbie

Hello from Sweden,
I have some experience from protcolous, and wanted to try jquery. So, i created this simple script just to try the spimliest, but it does not work!
the jquery.js-file is placed in the same folder as the script.
The alert says "object Object".
How come?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jquery.js"></script>
</head>
<body >
<form>
<input  id="lpsw" type="text"  style="background-color: #aabbcc;" />
<input id="sndlog" type="button" value="login"
onclick=
"var psw=$('#lpsw');alert(psw);"  />
</form>
</body>
</html>
    • Topic Participants

    • jea