```js
$(document).ready(function() {

      Function arraysort(text) {

          $.ajax({
            type: "POST",
            url: "default.aspx/sort",
            data: JSON.stringify({
              arr: text.split(',')
            }),
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(response) {
              //some code here
            }
          });
          If
```

user give input into textbox as string then alert that please enter integer values and if it is an integer value then alert that input should be greater than one and integer should be comma seperated such as 100,23,12,1 and if single value or string or integers are not comma seperated then dont sort array .but here my textbox values are taking already string value and then passing this string value to the webmethod side.now how can I make sure that in textbox value should be integer but it already taking string value