开发者

jQuery/JS : empty field after success?

开发者 https://www.devze.com 2023-01-11 05:16 出处:网络
at my ajax call success i wish to empty the field. success: function(msg){ $(wrapperId开发者_开发知识库).prepend(msg);

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


$('#message').val("");
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号