views:

10

answers:

1

at my ajax call success i wish to empty the field.

   success: function(msg){
     $(wrapperId).prepend(msg);
    }
 }

I tried this:

   success: function(msg){
     $(wrapperId).prepend(msg);
     $('#message').html("");
    }
 }

But it wont work

+2  A: 
$('#message').val("");
Makram Saleh