Error: missing ":" after property id

I just don’t seem to get my head around this problem. as far as i’m concerned the javascript/jquery code should work. Any ideas where i’m going wrong?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en">
<script type="text/javascript"
<script type="text/javascript">



    <form action="" method="post">
    <input type="text" name="fname" id="nom"></p>
        <p>Last Name
    <input type="text" name="sname" id="snom"></p>
    <input type="submit" name="sub" id="sub">

The error i’m getting says “error: missing “:” after property id”

thank you

The way you wrote your code is telling the jQuery method .[B]ready/B your passing an object array to it, the correct code should be a function


oh yes so true… works fine now. Thanks I feel so stupid :frowning:

No problem, don’t feel bad bud. Happens to all of us at a point