既然我有这一守则,我希望它从一个文本领域删除所有双重空间,但只能每次删除第一次。
$(document).ready(function(){
$("#article").blur(function(){
///alert($(this).val());
$(this).val($(this).val().replace(/ss+/, ));
});
});
I ve also tried removeAll(), but it won t work at all. any help would be great, thanks. I have a live example online at http://jsbin.com/ogasu/2/edit