check Return result from function
<p>My function 'GetResultById' returns true or false. How can I check the return result from the function in JQuery? I am trying to hide and show RadComboBox depending on the result.
 Here is my code. Also I would like to hide RadComboBox when the page loaded. I put combo.hideDropDown() in Init function but it doesn't seem to be working. Please let me know.</p>

<pre><code>        $.ajax({
            url: applicationPath + "/test/Test.svc/GetResultById",
            type: "POST",
            dataType: "json",
            data: '{"sId":' + sender.get_value() + '}',
            contentType: "application/json; charset=utf-8",
            success: function(result)
             {
                  if(result == true)
                  {
                     combo.hideDropdown();
                  }
             }           
</code></pre>
