X editable x-可编辑+;maskedinput在回车时返回下划线,但在单击时不返回下划线
x-editable+maskedinput在回车时从maskedinput返回下划线,但单击时不会返回下划线。有没有办法解决这个问题X editable x-可编辑+;maskedinput在回车时返回下划线,但在单击时不返回下划线,x-editable,maskedinput,X Editable,Maskedinput,x-editable+maskedinput在回车时从maskedinput返回下划线,但单击时不会返回下划线。有没有办法解决这个问题 JSFiddle: <a href="#" data-pk="1">1</a> $('a').editable({ type: 'text', name: 'username', tpl: '<input type="text" id ="zipiddemo" class="mask form-contro
JSFiddle:
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">'
});
$(document).on("focus", ".mask", function () {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">',
display: function(value, response) {
return false;
},
success: function(response, newValue) {
$(this).html(newValue.replace(/_/g, ''));
},
});
$(document).on("focus", ".mask", function() {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">'
});
$(document).on("focus", ".mask", function () {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">',
display: function(value, response) {
return false;
},
success: function(response, newValue) {
$(this).html(newValue.replace(/_/g, ''));
},
});
$(document).on("focus", ".mask", function() {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">'
});
$(document).on("focus", ".mask", function () {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">',
display: function(value, response) {
return false;
},
success: function(response, newValue) {
$(this).html(newValue.replace(/_/g, ''));
},
});
$(document).on("focus", ".mask", function() {
$(this).mask("?999");
});
JS:
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">'
});
$(document).on("focus", ".mask", function () {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">',
display: function(value, response) {
return false;
},
success: function(response, newValue) {
$(this).html(newValue.replace(/_/g, ''));
},
});
$(document).on("focus", ".mask", function() {
$(this).mask("?999");
});
$('a')。可编辑({
键入:“文本”,
名称:“用户名”,
第三方物流:''
});
$(document).on(“focus”,“.mask”,函数(){
$(此).mask(“?999”);
});
JSFiddle:
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">'
});
$(document).on("focus", ".mask", function () {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">',
display: function(value, response) {
return false;
},
success: function(response, newValue) {
$(this).html(newValue.replace(/_/g, ''));
},
});
$(document).on("focus", ".mask", function() {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">'
});
$(document).on("focus", ".mask", function () {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">',
display: function(value, response) {
return false;
},
success: function(response, newValue) {
$(this).html(newValue.replace(/_/g, ''));
},
});
$(document).on("focus", ".mask", function() {
$(this).mask("?999");
});
JS:
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">'
});
$(document).on("focus", ".mask", function () {
$(this).mask("?999");
});
<a href="#" data-pk="1">1</a>
$('a').editable({
type: 'text',
name: 'username',
tpl: '<input type="text" id ="zipiddemo" class="mask form-control input-sm dd" style="padding-right: 24px;">',
display: function(value, response) {
return false;
},
success: function(response, newValue) {
$(this).html(newValue.replace(/_/g, ''));
},
});
$(document).on("focus", ".mask", function() {
$(this).mask("?999");
});
$('a')。可编辑({
键入:“文本”,
名称:“用户名”,
第三方物流:,
显示:功能(值、响应){
返回false;
},
成功:函数(响应,newValue){
$(this.html(newValue.replace(/_/g,');
},
});
$(document).on(“focus”,“.mask”,function()){
$(此).mask(“?999”);
});