I have an ajax call and it retunrs some value. Now i need to check the value in javascript. How can i do it
$('#cm').blur(function () {
     var cmnumber = document.forms['myform']['cm'].value;
     $.ajax({
         type: 'get',
         url: "/validatecm/" + cmnumber,
         cache: false,
         asyn: false,
         data: cmnumber,
         success: function (data) {
             alert(data)
         },
         error: function (data) {
             alert(data)
         }
     })
 });
Now i need to access the "data" in my javascript submitformfunction. Any help wil be appreciated
 
     
     
    