jquery calls c# function and passing parameter
<p>I am trying to create form with jquery and having a problem. I want a user to click submit button, and that button will pass parameters and calls Webmethod in code behind. But I couldnt solve it. Would you please help?</p>

<pre><code> $(document).ready(function () {
            $('#&lt;%=btn_poll_submit.ClientID %&gt;').click(function (e) {
                    var param = '{"ProfessionalId":"1","choice_id":"2"}';
                    $.ajax({
                    type: "POST",
                    url: "ViewPost.aspx/insert_post_poll_selections",
                    data: param,
                    contentType: "application/json; charset=utf-8",
                    dataType: "json"

                });

            });
        });
</code></pre>

<p>Code Behind:</p>

<pre><code>[WebMethod]
protected void insert_post_poll_selections(int ProfessionalId, int choice_id)
{

    DbCommand dbCommand;
    dbCommand = db.GetStoredProcCommand("Post_Insert_Poll_Selections");
    db.AddInParameter(dbCommand, "ProfessionalId ", DbType.Int16, ProfessionalId);
    db.AddInParameter(dbCommand, "ChoiceId  ", DbType.Int16, choice_id);
    db.ExecuteNonQuery(dbCommand);

}
</code></pre>
