Is it possible to disable target based on responseText.length?

$(document).ready(function() { 
    var options = { 
         target :     '#mydiv' 
        beforeSubmit:  showRequest,  
        success:        showResponse  
   }; 
--------------------------------
something like
--------------------------------
        var options = { 
        if (responseText.length< 1000) { 
        target :     '#mydiv' 
        }
        beforeSubmit:  showRequest,  
        success:        showResponse 

Reply via email to