【发布时间】:2014-04-26 19:34:02
【问题描述】:
我正在使用 x-editable 和引导程序
我定义了以下 html 字段
<div class="form-group">
<label class="col-sm-4">Service Charges(%)</label>
<div class="col-sm-6 hoverEdit">
<a class="editableAccount" id="serviceTax"></a>
</div>
</div>
我定义了以下脚本以使字段可编辑
$('.editableAccount').editable({
type : 'number',
title : 'Enter New Value',
success : function(response, newValue) {
updateAccount(this.id, newValue);
}
});
现在,当我尝试编辑字段并输入十进制值时,我得到了这个
我想让这个字段可编辑,以便我可以输入十进制值。我在文档上看不到任何帮助。有人请在这里帮助我,我对 html 和 javascript 还很陌生。
【问题讨论】:
标签: jquery twitter-bootstrap x-editable