I recently began learning Ajax and jQuery. So yesterday I started to programm a simple ajax request for a formular, that sends a select list value to a php script and reads something out of a database.

It works so far! 
But the problem is, that when I click on the send button, it starts the request, 1 second later. I know that it has something to do with my interval. When I click on the send button, I start the request and every second it requests it also, so that I have the opportunity, to auto-refresh new income entries. 

But I'd like to have that interval cycle every second, but the first time I press the button it should load immediately, not just 1 second later. 

Here is my code:
<http://jsbin.com/qitojawuva/1/edit>

```
$(document).ready(function () {

    var interval = 0;
    $("#form1").submit(function () {

        if (interval === 0) {
            interval = setInterval(function () {

                var url = "tbladen.php";
                var data = $("#form1").serialize();

                $.ajax({
                    type: "POST",
                    url: url,
                    data: data,
                    success: function (data) {
                        $("#tbladen").html(data);
                    }
                });
            }, 1000);
        }
        return false;
    });

});

```

Thanks!