how to send ajax request in jQuery with data encoded
<p>when i send ajax request i got the error that</p>

<pre><code> $.ajax({
                        type: "POST",
                        url: furl2,
                        cache: false,
                        contentType: "application/json;charset=utf-8",
                        data: { id: id, url: $("#id" + id + " .customURL").val() },
                        success: function (msg) {
                          //some code here
                        },
                    });
                }
</code></pre>

<p>i got the error that id is undefined even i put them.</p>

<p>how i can send a ajax request to server using ajax.</p>
