О
Сделал вот так
$(document).on("change keyup #first_payment click", "input[type='text']", function() {
if(this.value.length > 2 || Number(this.value) !== 100){
this.value = this.value.replace(/[^0-9]/g, "");
};
});
Size: a a a
MH
$(document).on("change keyup #first_payment click", "input[type='text']", function() {
if(this.value.length > 2 || Number(this.value) !== 100){
this.value = this.value.replace(/[^0-9]/g, "");
};
});
S
$(document).on("change keyup #first_payment click", "input[type='text']", function() {
if(this.value.length > 2 || Number(this.value) !== 100){
this.value = this.value.replace(/[^0-9]/g, "");
};
});
MH
DE
MH
MH
DE
MH
$(document).on("change keyup input click", "#first_payment", function() {
if(this.value.length > 2 || Number(this.value) !== 100){
this.value = this.value.replace(/[^0-9]/g, "");
};
});
S
$(document).on("change keyup input click", "#first_payment", function() {
if(this.value.length > 2 || Number(this.value) !== 100){
this.value = this.value.replace(/[^0-9]/g, "");
};
});
DE
$(document).on("change keyup input click", "#first_payment", function() {
if(this.value.length > 2 || Number(this.value) !== 100){
this.value = this.value.replace(/[^0-9]/g, "");
};
});
MH
DE
MH
MH
MH
MH
DE
DE
DE