inputs.bind({
keyup:function(){$(this).val($(this).val().replace(/\D/g,''));},
focus:function(){if($(this).val() == this.defaultValue) $(this).val("");},
blur: function(){
var value_new = $(this).val();
var value_cur = $(this).val() == "" ? this.defaultValue : value_new;
$(this).val(value_cur);
}
});

相关文章:

  • 2021-08-12
  • 2021-07-31
  • 2022-12-23
  • 2021-11-06
  • 2021-05-19
  • 2021-09-06
  • 2021-06-13
猜你喜欢
  • 2021-05-03
  • 2021-10-25
  • 2021-10-26
  • 2022-02-14
  • 2021-12-13
  • 2021-10-14
  • 2022-02-18
相关资源
相似解决方案