i am trying to create a form submit when checkbox is changed
my code is given below. . my problem is nothing happens on 

> 
> gotofile.php
> 
> 
> 

file but //dosomething 
on the sucess function is executed

the jquery:

```
$("#container input[type=checkbox]").change(function(e){
                if($(this).attr('checked')) 
                {

                    var cnType=$(this).attr("id");

                    $.ajax({
                        type: "POST",
                        url: "gotofile.php",
                        data: "typID="+cnType ,
                        cache: false,
                        success: function(){ 
                            //do something 
                        }
                    });
                }
            });

```

the php:

```
include '../dbconnection/dbconfig.php';

$typeID=$_POST['typID'];
$qryConnections="INSERT INTO ...";
$rslt1 = mysql_query($qryConnections);

```

the html

```
<form id="cnct" method="POST">
                            <div id="container" style="">
                                <ul style="list-style: none;">
                                   <li><input type="checkbox" id="1" />A</li>
                <li><input type="checkbox" id="2" />B</li>

                                </ul>
                            </div></form>

```

Can any one help me what i am doing wrong?