You should specify the value to be posted with the send i.e. it should be like-
$.ajax({
type: "POST",
url: "example/name",
data: 'send='+1,
success: function(value) {
}
});
Then you will have the value of this variable as you are doing.
using-
$this->input->post('send');