getting data from webmethod

getting data from webmethod

Hi;

[WebMethod]
public static string SendData()
        {
   string ssa="example"
            return ssa;
        }
        

Html
<input type="hidden" id="gin"/>

hidden input value need to be return data from webmethod(value=ssa)
how to do this with jquery/ajax
please help me