JQuery function is not calling when JQuery Ajax method succeed
<p>Hi I am doing a small application in asp.net using JQuery</p>

<pre><code>    $(document).ready(function() {
        var imgPoll = new Image();
        imgPoll.src = 'images/red-bar.png';
        if ($("#divVoted").length &gt; 0) //Already voted
        {
            animateResults();
        }
        else {
            $("#rdoPoll0").attr("checked", "checked"); //default select the first Choice

            $("#btnSubmit").click(function() {
                $("#divPoll").css("cursor", "wait"); //show wait cursor inside Poll div while processing
                $("#btnSubmit").attr("disabled", "true") //disable the Vote button while processing
                var pID = $("input[id$=hidPollID]").val(); //get Poll ID
                var cID = $("input[name='rdoPoll']:checked").val(); //get the checked Choice
                var data = "{'pID':'" + pID + "', 'cID':'" + cID + "'}"; //create the JSON data to send to server
                jQuery.ajax(
            {

                type: 'POST',

                data: data,
                contentType: 'application/json; charset=utf-8',
                dataType: 'json',
                url: 'Poll_CS.aspx/UpdatePollCount',
                success: function(msg)  //show the result
                {
                    //alert("valid");
                    $("#divPoll").css("cursor", "default"); //remove the wait cursor
                    $("#btnSubmit").attr("disabled", "false") //enable the Vote button
                    $("div[id$=divAnswers]").fadeOut("fast").html(msg.d).fadeIn("fast",               function() { animateResults(); });
                }
            });
            });
        }
        function animateResults() {

            $("div[id$=divAnswers] img").each(function() {
                var percentage = $(this).attr("val");
                $(this).css({ width: "0%" }).animate({ width: percentage }, 'slow');
            });
        }
    });
</code></pre>

<p>After Success of Jquery.ajax method <code>animateResults()</code> function is not calling. 
While in local server it is working good whereas in host server it is not working.</p>

<p>Please give suggestion to solve this problem</p>

<p>Thanks
Ganesh</p>
